From b32cd0e9afe8b09383db65815aeca7e58278dcee Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 11 Mar 2017 17:20:58 +0800 Subject: [PATCH] os/bluestore: silence gcc warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit silences following warning: src/os/bluestore/BitAllocator.h:410:8: warning: ‘virtual bool BitMapAreaIN::child_check_n_lock(BitMapArea*, int64_t, bool)’ was hidden [-Wover\ loaded-virtual] bool child_check_n_lock(BitMapArea *child, int64_t required, bool lock) { ^~~~~~~~~~~~~~~~~~ /var/ceph/ceph/src/os/bluestore/BitAllocator.h:489:8: warning: by ‘BitMapAreaLeaf::child_check_n_lock’ [-Woverloaded-virtual] bool child_check_n_lock(BitMapZone* child, int64_t required, bool lock); ^~~~~~~~~~~~~~~~~~ Signed-off-by: Kefu Chai --- src/os/bluestore/BitAllocator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/bluestore/BitAllocator.h b/src/os/bluestore/BitAllocator.h index a90d760dde132..47bd1c5b69b47 100644 --- a/src/os/bluestore/BitAllocator.h +++ b/src/os/bluestore/BitAllocator.h @@ -406,7 +406,8 @@ protected: virtual bool is_allocated(int64_t start_block, int64_t num_blocks); virtual bool is_exhausted(); - + + using BitMapArea::child_check_n_lock; bool child_check_n_lock(BitMapArea *child, int64_t required, bool lock) { ceph_abort(); return false; -- 2.39.5