Skip to content

Commit 6c70a55

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused variables in glean/rts/tests/SubstitutionTest.cpp
Summary: LLVM-15 has a warning `-Wunused-but-set-variable` which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance. This diff either (a) removes an unused variable and, possibly, it's associated code, or (b) qualifies the variable with `[[maybe_unused]]`, mostly in cases where the variable _is_ used, but, eg, in an `assert` statement that isn't present in production code. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: palmje Differential Revision: D56022388 fbshipit-source-id: 1ce16bb29d0a9b4f5735122089f8e9c51846a27f
1 parent 2565674 commit 6c70a55

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

gloo/transport/ibverbs/buffer.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ void Buffer::waitSend() {
168168
}
169169

170170
void Buffer::send(size_t offset, size_t length, size_t roffset) {
171-
int rv;
172-
173171
// Can't assert on roffset, since we don't know the size of
174172
// the remote buffer. Refactor of initialization code needed
175173
// to support this.

0 commit comments

Comments
 (0)