From 5198d4a0317927928f36baceca41d2e48dd7172c Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Mon, 16 Aug 2021 09:49:28 +0000 Subject: [PATCH] crimson/tools: silence [[maybe_unused]] warning in store-nbd.cc. ``` [595/2463] Building CXX object src/crimson/tools/CMakeFiles/crimson-store-nbd.dir/store_nbd/store-nbd.cc.o ../src/crimson/tools/store_nbd/store-nbd.cc:324:43: warning: maybe_unused attribute ignored [-Wattributes] 324 | [[maybe_unused]] char reserved[124] = {0}; ``` Signed-off-by: Radoslaw Zarzynski --- src/crimson/tools/store_nbd/store-nbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/tools/store_nbd/store-nbd.cc b/src/crimson/tools/store_nbd/store-nbd.cc index c4398942208bb..003aee73db3d8 100644 --- a/src/crimson/tools/store_nbd/store-nbd.cc +++ b/src/crimson/tools/store_nbd/store-nbd.cc @@ -321,7 +321,7 @@ class nbd_oldstyle_negotiation_t { uint64_t magic2 = seastar::cpu_to_be(0x00420281861253); // "IHAVEOPT" uint64_t size = 0; uint32_t flags = seastar::cpu_to_be(0); - [[maybe_unused]] char reserved[124] = {0}; + char reserved[124] = {0}; public: nbd_oldstyle_negotiation_t(uint64_t size, uint32_t flags) -- 2.39.5