]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librgw_file_xattr.cc: fix unused warning 40022/head
authorSamuel Just <sjust@redhat.com>
Thu, 11 Mar 2021 05:50:43 +0000 (21:50 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 12 Mar 2021 21:19:18 +0000 (13:19 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/test/librgw_file_xattr.cc

index 0cf40471027810cdd79527b009e330b635a96f48..bb4b74c9e251a92c75a38386d9d62ff942b3b00c 100644 (file)
@@ -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) {