From: Kefu Chai Date: Thu, 2 Jun 2016 03:17:36 +0000 (+0800) Subject: test/osd/TestRados.cc: silence a compiler warning X-Git-Tag: v11.0.0~347^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=922be65fab684e617b7dca9764196b458efcdb96;p=ceph.git test/osd/TestRados.cc: silence a compiler warning fix following warning by returning `nullptr` after an assert(0). ``` ceph/src/test/osd/TestRados.cc: In member function ‘TestOp* WeightedTestGenerator::gen_op(RadosTestContext&, TestOpType)’: ceph/src/test/osd/TestRados.cc:241:3: warning: control reaches end of non-void function [-Wreturn-type] } ``` Signed-off-by: Kefu Chai --- diff --git a/src/test/osd/TestRados.cc b/src/test/osd/TestRados.cc index 0eb4be5eae3d..38ecedaf259a 100644 --- a/src/test/osd/TestRados.cc +++ b/src/test/osd/TestRados.cc @@ -237,6 +237,7 @@ private: default: cerr << m_op << ": Invalid op type " << type << std::endl; assert(0); + return nullptr; } }