]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: silence warnings from -Wsign-compare
authorJos Collin <jcollin@redhat.com>
Thu, 21 Sep 2017 07:05:53 +0000 (12:35 +0530)
committerJos Collin <jcollin@redhat.com>
Thu, 21 Sep 2017 07:15:15 +0000 (12:45 +0530)
commit85d6e4b09b5a8aac0c3ea37133e16e3a9e2894f0
treefd484d46741c5f842862dde0a014d6b834f73477
parent998bf1b43ca9118ce7516819826f0cf7bbfc273e
osd: silence warnings from -Wsign-compare

Fixed the warning :

ceph/src/osd/OSDMap.cc: In member function ‘int OSDMap::validate_crush_rules(CrushWrapper*, std::ostream*) const’:
ceph/src/osd/OSDMap.cc:3278:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (pool.get_size() < (int)newcrush->get_rule_mask_min_size(ruleno) ||
         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ceph/src/osd/OSDMap.cc:3279:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  pool.get_size() > (int)newcrush->get_rule_mask_max_size(ruleno)) {
  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/osd/OSDMap.cc