From 65cac516302fd09321660ad3482b1c4dd4741b32 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 13 Oct 2017 14:12:44 +0800 Subject: [PATCH] os/bluestore: silence -Wreturn-type warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/os/bluestore/bluestore_types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/bluestore/bluestore_types.h b/src/os/bluestore/bluestore_types.h index 267664d44a7..4293446612c 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 -- 2.39.5