From d5c4dcccd59b203e32b173e5028070a554586b0f Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 12 Dec 2024 18:36:24 -0800 Subject: [PATCH] Fix unused-variable issues Reviewed By: dmm-fb Differential Revision: D67178499 fbshipit-source-id: 899cdf5ba4673d874f07fe54aaeda161ae33d176 --- fboss/lib/CommonUtils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fboss/lib/CommonUtils.h b/fboss/lib/CommonUtils.h index ff2f718f98a1b..5bbe6df028b0d 100644 --- a/fboss/lib/CommonUtils.h +++ b/fboss/lib/CommonUtils.h @@ -95,7 +95,8 @@ inline int64_t getCumulativeValue(const StatT& stat, bool hasSumSuffix = true) { std::this_thread::sleep_for(sleepTime); \ } \ /* Only switch to hard test on last retry */ \ - bool WITH_RETRIES_softTest = WITH_RETRIES_tries != maxRetries; \ + [[maybe_unused]] bool WITH_RETRIES_softTest = \ + WITH_RETRIES_tries != maxRetries; \ bool WITH_RETRIES_pass = true; \ /* _ASSERT_EVENTUALLY and _EXPECT_EVENTUALLY will read \ * WITH_RETRIES_softTest to decide how to assert. \