From: Samuel Just Date: Thu, 11 Mar 2021 05:50:43 +0000 (-0800) Subject: test/librgw_file_xattr.cc: fix unused warning X-Git-Tag: v17.1.0~2590^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40022%2Fhead;p=ceph.git test/librgw_file_xattr.cc: fix unused warning Signed-off-by: Samuel Just --- diff --git a/src/test/librgw_file_xattr.cc b/src/test/librgw_file_xattr.cc index 0cf4047102781..bb4b74c9e251a 100644 --- a/src/test/librgw_file_xattr.cc +++ b/src/test/librgw_file_xattr.cc @@ -93,7 +93,7 @@ namespace { friend ostream& operator<<(ostream& os, const obj_rec& rec); }; - ostream& operator<<(ostream& os, const obj_rec& rec) + [[maybe_unused]] ostream& operator<<(ostream& os, const obj_rec& rec) { RGWFileHandle* rgw_fh = rec.rgw_fh; if (rgw_fh) {