Skip to content

Commit 664f1e2

Browse files
committed
libceph: add __maybe_unused to DEFINE_MSGR2_FEATURE
Avoid -Wunused-const-variable warnings for "make W=1". Reported-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent f5f2c9a commit 664f1e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/ceph/msgr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
#define CEPH_MSGR2_INCARNATION_1 (0ull)
3434

3535
#define DEFINE_MSGR2_FEATURE(bit, incarnation, name) \
36-
static const uint64_t CEPH_MSGR2_FEATURE_##name = (1ULL << bit); \
37-
static const uint64_t CEPH_MSGR2_FEATUREMASK_##name = \
36+
static const uint64_t __maybe_unused CEPH_MSGR2_FEATURE_##name = (1ULL << bit); \
37+
static const uint64_t __maybe_unused CEPH_MSGR2_FEATUREMASK_##name = \
3838
(1ULL << bit | CEPH_MSGR2_INCARNATION_##incarnation);
3939

4040
#define HAVE_MSGR2_FEATURE(x, name) \

0 commit comments

Comments
 (0)