Skip to content

Commit

Permalink
Remove unused variables in gloo/transport/tcp/pair.cc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jan 18, 2024
1 parent 28d85a4 commit 772fccf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gloo/transport/tcp/pair.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ namespace {
// It is hard coded because making buffers larger than this would not
// have much impact. Also see socket(7).
constexpr size_t kMaxSendBufferSize = 32 * 1024 * 1024;
constexpr size_t kMaxRecvBufferSize = 32 * 1024 * 1024;

} // namespace

Expand Down

0 comments on commit 772fccf

Please sign in to comment.