From: Radoslaw Zarzynski Date: Fri, 20 Nov 2020 11:52:01 +0000 (+0100) Subject: crimson: fix a warning in PG::with_lock_obc(). X-Git-Tag: v16.1.0~533^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9d69d45246b039a2b7a3e39c336421b2e2840f1;p=ceph.git crimson: fix a warning in PG::with_lock_obc(). Without the fix, on a build with `NDEBUG` set, GCC complains: ``` crimson/osd/pg.cc:869:35: warning: control reaches end of non-void function [-Wreturn-type] 869 | const hobject_t oid = get_oid(*m); ``` Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index 5c78a5d115b60..b1bf7b9c19a98 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -887,7 +887,7 @@ PG::with_locked_obc(Ref &m, const OpInfo &op_info, return with_clone_obc(oid, std::move(f)); } default: - assert(0); + ceph_abort(); }; }