]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/posix: fix unused variable warning 54621/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 22 Nov 2023 19:26:50 +0000 (14:26 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 22 Nov 2023 19:26:52 +0000 (14:26 -0500)
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 <cbodley@redhat.com>
src/rgw/driver/posix/rgw_sal_posix.cc

index fc48c4f8fa8c5d3bafad904fbeeff144b1bd4cbf..23f9f83dabc142f91686035362d24be4567c96bd 100644 (file)
@@ -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)