From: Kefu Chai Date: Fri, 13 Oct 2017 06:12:44 +0000 (+0800) Subject: os/bluestore: silence -Wreturn-type warning X-Git-Tag: v13.0.1~583^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18286%2Fhead;p=ceph.git os/bluestore: silence -Wreturn-type warning this silences following warning: ceph/src/os/bluestore/bluestore_types.h: In member function ‘bool bluestore_blob_t::_validate_range(uint64_t, uint64_t, bool) const’: ceph/src/os/bluestore/bluestore_types.h:664:3: warning: control reaches end of non-void function [-Wreturn-type] } ^ Signed-off-by: Kefu Chai --- diff --git a/src/os/bluestore/bluestore_types.h b/src/os/bluestore/bluestore_types.h index 267664d44a7a..4293446612c3 100644 --- a/src/os/bluestore/bluestore_types.h +++ b/src/os/bluestore/bluestore_types.h @@ -661,6 +661,7 @@ public: ++p; } assert(0 == "we should not get here"); + return false; } /// return true if the entire range is allocated