From 6f5379de36ce3388fce1cfae74af2d6d5ffaf43c Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 10 Mar 2021 21:50:43 -0800 Subject: [PATCH] test/librgw_file_xattr.cc: fix unused warning Signed-off-by: Samuel Just --- src/test/librgw_file_xattr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librgw_file_xattr.cc b/src/test/librgw_file_xattr.cc index 0cf404710278..bb4b74c9e251 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) { -- 2.47.3