From 9f70239ef007392a9ce4c421fe944164fdad6ca0 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 20 Jul 2021 22:47:07 +0800 Subject: [PATCH] crimson/tools/store_nbd: mark padding variable with [[maybe_unused]] also silences -Wunused-variable warning from GCC Signed-off-by: Kefu Chai --- 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 17f8cfa1d43b..149373601dce 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); - char reserved[124] = {0}; + [[maybe_unused]] char reserved[124] = {0}; public: nbd_oldstyle_negotiation_t(uint64_t size, uint32_t flags) -- 2.47.3