From 3413c4248f2878dbe8b723ce32ee66165f6394ea Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Sat, 23 Sep 2023 01:24:05 -0500 Subject: [PATCH] rgw/test: fix compiler warning Fixing a compiler warning regarding ambiguity of the overloaded operator '==' (as it allows a one-sided const operand) Signed-off-by: Ronen Friedman --- src/test/librgw_file_aw.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/librgw_file_aw.cc b/src/test/librgw_file_aw.cc index 11c81ad7fd44..1a769d2878f2 100644 --- a/src/test/librgw_file_aw.cc +++ b/src/test/librgw_file_aw.cc @@ -93,11 +93,11 @@ namespace { } // page_ix } - int size() { return pages.size(); } + int size() const { return pages.size(); } struct iovec* get_iovs() { return iovs; } - bool operator==(const ZPageSet& rhs) { + bool operator==(const ZPageSet& rhs) const { int n = size(); for (int page_ix = 0; page_ix < n; ++page_ix) { ZPage* p1 = pages[page_ix]; -- 2.47.3