From: Casey Bodley Date: Wed, 22 Nov 2023 19:26:50 +0000 (-0500) Subject: rgw/posix: fix unused variable warning X-Git-Tag: v19.0.0~36^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F54621%2Fhead;p=ceph.git rgw/posix: fix unused variable warning ceph/src/rgw/driver/posix/rgw_sal_posix.cc:37:19: warning: unused variable 'MP_OBJ_PART_FMT' [-Wunused-const-variable] const std::string MP_OBJ_PART_FMT = "{:0>5}"; ^ Signed-off-by: Casey Bodley --- diff --git a/src/rgw/driver/posix/rgw_sal_posix.cc b/src/rgw/driver/posix/rgw_sal_posix.cc index fc48c4f8fa8c..23f9f83dabc1 100644 --- a/src/rgw/driver/posix/rgw_sal_posix.cc +++ b/src/rgw/driver/posix/rgw_sal_posix.cc @@ -34,7 +34,6 @@ const std::string ATTR_PREFIX = "user.X-RGW-"; #define RGW_POSIX_ATTR_OWNER "POSIX-Owner" const std::string mp_ns = "multipart"; const std::string MP_OBJ_PART_PFX = "part-"; -const std::string MP_OBJ_PART_FMT = "{:0>5}"; const std::string MP_OBJ_HEAD_NAME = MP_OBJ_PART_PFX + "00000"; static inline bool get_attr(Attrs& attrs, const char* name, bufferlist& bl)