Skip to content

Commit 1f2be0f

Browse files
authored
Address -Wunused-parameter warnings for SHM counter functions (#1670)
1 parent f3bc6e3 commit 1f2be0f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/libmongoc/src/mongoc/mongoc-counters-private.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -191,21 +191,21 @@ enum {
191191

192192
#else
193193
/* when counters are disabled, these functions are no-ops */
194-
#define COUNTER(ident, Category, Name, Description) \
195-
static BSON_INLINE void mongoc_counter_##ident##_add (int64_t val) \
196-
{ \
197-
} \
198-
static BSON_INLINE void mongoc_counter_##ident##_inc (void) \
199-
{ \
200-
} \
201-
static BSON_INLINE void mongoc_counter_##ident##_dec (void) \
202-
{ \
203-
} \
204-
static BSON_INLINE void mongoc_counter_##ident##_reset (void) \
205-
{ \
206-
} \
207-
static BSON_INLINE void mongoc_counter_##ident##_count (void) \
208-
{ \
194+
#define COUNTER(ident, Category, Name, Description) \
195+
static BSON_INLINE void mongoc_counter_##ident##_add (BSON_MAYBE_UNUSED int64_t val) \
196+
{ \
197+
} \
198+
static BSON_INLINE void mongoc_counter_##ident##_inc (void) \
199+
{ \
200+
} \
201+
static BSON_INLINE void mongoc_counter_##ident##_dec (void) \
202+
{ \
203+
} \
204+
static BSON_INLINE void mongoc_counter_##ident##_reset (void) \
205+
{ \
206+
} \
207+
static BSON_INLINE void mongoc_counter_##ident##_count (void) \
208+
{ \
209209
}
210210
#include "mongoc-counters.defs"
211211
#undef COUNTER

0 commit comments

Comments
 (0)