]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: silence gcc warning 14028/head
authorKefu Chai <kchai@redhat.com>
Sat, 18 Mar 2017 08:39:27 +0000 (16:39 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 18 Mar 2017 08:41:50 +0000 (16:41 +0800)
src/os/bluestore/BitAllocator.h:410:8: warning: ‘virtual bool
BitMapAreaIN::child_check_n_lock(BitMapArea*, int64_t, bool)’ was
hidden    [-Woverloaded-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 <kchai@redhat.com>
src/os/bluestore/BitAllocator.h

index 47bd1c5b69b47f7d1d6fe5efd911d631642d236f..a69798b7b449aea17f863a3d064f9c3866fcaf17 100644 (file)
@@ -407,7 +407,6 @@ 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;
@@ -482,6 +481,7 @@ public:
   BitMapAreaLeaf(CephContext* cct, int64_t zone_num, int64_t total_blocks,
                 bool def);
 
+  using BitMapAreaIN::child_check_n_lock;
   bool child_check_n_lock(BitMapArea *child, int64_t required) {
     ceph_abort();
     return false;