From: Kefu Chai Date: Tue, 3 Mar 2020 04:19:44 +0000 (+0800) Subject: librbd: remove unused variable X-Git-Tag: v15.1.1~112^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0bd5db60125409ce8b3c7e1143f865a443f95c56;p=ceph.git librbd: remove unused variable this silences the warning from clang-11, like ``` ../src/librbd/image/RefreshRequest.cc:34:16: warning: unused variable 'MAX_METADATA_ITEMS' [-Wunused-const-variable] const uint64_t MAX_METADATA_ITEMS = 128; ^ ``` Signed-off-by: Kefu Chai --- diff --git a/src/librbd/image/RefreshRequest.cc b/src/librbd/image/RefreshRequest.cc index d5bc63071702..602221bfdd64 100644 --- a/src/librbd/image/RefreshRequest.cc +++ b/src/librbd/image/RefreshRequest.cc @@ -29,12 +29,6 @@ namespace librbd { namespace image { -namespace { - -const uint64_t MAX_METADATA_ITEMS = 128; - -} - using util::create_rados_callback; using util::create_async_context_callback; using util::create_context_callback; diff --git a/src/librbd/mirror/snapshot/SetImageStateRequest.cc b/src/librbd/mirror/snapshot/SetImageStateRequest.cc index cc2ff16f68dc..d0caccdf58ae 100644 --- a/src/librbd/mirror/snapshot/SetImageStateRequest.cc +++ b/src/librbd/mirror/snapshot/SetImageStateRequest.cc @@ -18,12 +18,6 @@ #define dout_prefix *_dout << "librbd::mirror_snapshot::SetImageStateRequest: " \ << this << " " << __func__ << ": " -namespace { - -const uint64_t MAX_METADATA_ITEMS = 128; - -} - namespace librbd { namespace mirror { namespace snapshot {