]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
include/interval_set: no need to check if an unsigned greater or equal to 0
authorKefu Chai <kchai@redhat.com>
Fri, 22 May 2020 10:04:26 +0000 (18:04 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 27 May 2020 04:35:11 +0000 (12:35 +0800)
commitb0a8d09ebde82ab49f3fff50d090bc9f40b7cb5d
tree53907ef4091f6375c754b0444ecb5c44ccdaadd1
parentd822ffe1fa3e45716bedd3153b9d89b75409df45
include/interval_set: no need to check if an unsigned greater or equal to 0

this silences the warning of

../src/include/interval_set.h:512:23: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits]
  512 |     ceph_assert(_size >= 0);

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/interval_set.h