Skip to content

Commit

Permalink
Fix unused-variable issues in a few places
Browse files Browse the repository at this point in the history
Reviewed By: dmm-fb

Differential Revision: D66930236

fbshipit-source-id: bc6b53afaa2050fef741b630d85b259cb4867ac3
  • Loading branch information
r-barnes authored and facebook-github-bot committed Dec 8, 2024
1 parent 3366269 commit e270aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folly/Synchronized.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit e270aa1

Please sign in to comment.