Skip to content

Commit 772fccf

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused variables in gloo/transport/tcp/pair.cc
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: danzimm, meyering Differential Revision: D52848021 fbshipit-source-id: f1e6f1dcf35666ebf3ed45c00602ecea8f0d6b83
1 parent 28d85a4 commit 772fccf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

gloo/transport/tcp/pair.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ namespace {
4343
// It is hard coded because making buffers larger than this would not
4444
// have much impact. Also see socket(7).
4545
constexpr size_t kMaxSendBufferSize = 32 * 1024 * 1024;
46-
constexpr size_t kMaxRecvBufferSize = 32 * 1024 * 1024;
4746

4847
} // namespace
4948

0 commit comments

Comments
 (0)