From f9d69d45246b039a2b7a3e39c336421b2e2840f1 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Fri, 20 Nov 2020 12:52:01 +0100 Subject: [PATCH] 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 --- src/crimson/osd/pg.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }; } -- 2.39.5