Skip to content

Address -Wunused-parameter warnings for SHM counter functions #1670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/libmongoc/src/mongoc/mongoc-counters-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,21 +191,21 @@ enum {

#else
/* when counters are disabled, these functions are no-ops */
#define COUNTER(ident, Category, Name, Description) \
static BSON_INLINE void mongoc_counter_##ident##_add (int64_t val) \
{ \
} \
static BSON_INLINE void mongoc_counter_##ident##_inc (void) \
{ \
} \
static BSON_INLINE void mongoc_counter_##ident##_dec (void) \
{ \
} \
static BSON_INLINE void mongoc_counter_##ident##_reset (void) \
{ \
} \
static BSON_INLINE void mongoc_counter_##ident##_count (void) \
{ \
#define COUNTER(ident, Category, Name, Description) \
static BSON_INLINE void mongoc_counter_##ident##_add (BSON_MAYBE_UNUSED int64_t val) \
{ \
} \
static BSON_INLINE void mongoc_counter_##ident##_inc (void) \
{ \
} \
static BSON_INLINE void mongoc_counter_##ident##_dec (void) \
{ \
} \
static BSON_INLINE void mongoc_counter_##ident##_reset (void) \
{ \
} \
static BSON_INLINE void mongoc_counter_##ident##_count (void) \
{ \
}
#include "mongoc-counters.defs"
#undef COUNTER
Expand Down