Skip to content

Commit

Permalink
Remove unused-variable in openr/spark/Spark.cpp
Browse files Browse the repository at this point in the history
Summary:
LLVM-15 has a warning `-Wunused-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]]`.

 - If you approve of this diff, please use the "Accept & Ship" button :-)

Reviewed By: palmje

Differential Revision: D65013052

fbshipit-source-id: fb8ef4a8e670792614d30606352ecd908611122f
  • Loading branch information
r-barnes authored and facebook-github-bot committed Oct 26, 2024
1 parent 407f760 commit b05e1c9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion openr/spark/Spark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,6 @@ Spark::sendHelloMsg(
// down event has not arrived yet
const auto& interfaceEntry = interfaceDb_.at(ifName);
const auto ifIndex = interfaceEntry.ifIndex;
const auto v4Addr = interfaceEntry.v4Network.first;
const auto v6Addr = interfaceEntry.v6LinkLocalNetwork.first;
thrift::OpenrVersion openrVer(*kVersion_.version());

Expand Down

0 comments on commit b05e1c9

Please sign in to comment.