From b05e1c92cfac4d33905082896e1cd5e2f969fd7c Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sat, 26 Oct 2024 07:33:12 -0700 Subject: [PATCH] Remove unused-variable in openr/spark/Spark.cpp 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 --- openr/spark/Spark.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/openr/spark/Spark.cpp b/openr/spark/Spark.cpp index 797b77a74bd..4d5b36ea411 100644 --- a/openr/spark/Spark.cpp +++ b/openr/spark/Spark.cpp @@ -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());