]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: silence -Wreturn-type warning 18286/head
authorKefu Chai <kchai@redhat.com>
Fri, 13 Oct 2017 06:12:44 +0000 (14:12 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Oct 2017 06:12:47 +0000 (14:12 +0800)
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 <kchai@redhat.com>
src/os/bluestore/bluestore_types.h

index 267664d44a7a109f544e54b4e09c92846e4967f9..4293446612c3fd64740828eeb761cb91b9e51d00 100644 (file)
@@ -661,6 +661,7 @@ public:
       ++p;
     }
     assert(0 == "we should not get here");
+    return false;
   }
 
   /// return true if the entire range is allocated