From 9209a8f2cf3a7ae83dfdf1a6c8c99a8e301aa079 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 4 May 2015 14:45:11 +0800 Subject: [PATCH] osd: silence gcc -Wparentheses warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit otherwise we have following warning: warning: suggest parentheses around operand of ‘!’ or change ‘|’ to ‘||’ or ‘!’ to ‘~’ [-Wparentheses] Signed-off-by: Kefu Chai --- src/osd/OSD.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 79078fe69dc57..ade19f0f24c94 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2401,8 +2401,7 @@ void OSD::write_superblock(ObjectStore::Transaction& t) dout(10) << "write_superblock " << superblock << dendl; //hack: at minimum it's using the baseline feature set - if (!superblock.compat_features.incompat.mask | - CEPH_OSD_FEATURE_INCOMPAT_BASE.id) + if (!superblock.compat_features.incompat.contains(CEPH_OSD_FEATURE_INCOMPAT_BASE)) superblock.compat_features.incompat.insert(CEPH_OSD_FEATURE_INCOMPAT_BASE); bufferlist bl; -- 2.39.5