We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BSON_UNUSED
1 parent 8229050 commit 50761e8Copy full SHA for 50761e8
src/libbson/src/bson/bson-atomic.h
@@ -187,6 +187,7 @@ enum bson_memory_order {
187
BSON_UNREACHABLE ("Invalid bson_memory_order value"); \
188
}) \
189
BSON_IF_GNU_LEGACY_ATOMICS ({ \
190
+ BSON_UNUSED (order); \
191
__sync_synchronize (); \
192
return *a; \
193
@@ -213,7 +214,7 @@ enum bson_memory_order {
213
214
default: \
215
216
- BSON_IF_GNU_LEGACY_ATOMICS (return __sync_val_compare_and_swap (a, *a, value);) \
217
+ BSON_IF_GNU_LEGACY_ATOMICS (BSON_UNUSED (ord); return __sync_val_compare_and_swap (a, *a, value);) \
218
} \
219
\
220
static BSON_INLINE Type bson_atomic_##NamePart##_compare_exchange_strong ( \
0 commit comments