From f4212c4fe3fc2dbf855f1079c88b5b57db0fc606 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sun, 8 Dec 2024 10:44:55 -0800 Subject: [PATCH] Fix unused-variable issues in a few places Reviewed By: dmm-fb Differential Revision: D66930236 fbshipit-source-id: bc6b53afaa2050fef741b630d85b259cb4867ac3 --- third-party/folly/src/folly/Synchronized.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/folly/src/folly/Synchronized.h b/third-party/folly/src/folly/Synchronized.h index 6fda805a322da..859febca6a01f 100644 --- a/third-party/folly/src/folly/Synchronized.h +++ b/third-party/folly/src/folly/Synchronized.h @@ -1794,7 +1794,7 @@ struct [[deprecated( (FB_VA_GLUE(FB_ARG_2_OR_1, (__VA_ARGS__))).contextualLock(); \ !SYNCHRONIZED_VAR(state); \ SYNCHRONIZED_VAR(state) = true) \ - for (auto& FB_VA_GLUE(FB_ARG_1, (__VA_ARGS__)) = \ + for ([[maybe_unused]] auto& FB_VA_GLUE(FB_ARG_1, (__VA_ARGS__)) = \ *SYNCHRONIZED_VAR(lockedPtr).operator->(); \ !SYNCHRONIZED_VAR(state); \ SYNCHRONIZED_VAR(state) = true) \