diff options
author | Kefu Chai <kchai@redhat.com> | 2020-05-22 12:04:26 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2020-05-27 06:35:11 +0200 |
commit | b0a8d09ebde82ab49f3fff50d090bc9f40b7cb5d (patch) | |
tree | 53907ef4091f6375c754b0444ecb5c44ccdaadd1 | |
parent | include/ceph_fs: do not use anonymous aggregate with member having ctor (diff) | |
download | ceph-b0a8d09ebde82ab49f3fff50d090bc9f40b7cb5d.tar.xz ceph-b0a8d09ebde82ab49f3fff50d090bc9f40b7cb5d.zip |
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>
-rw-r--r-- | src/include/interval_set.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/interval_set.h b/src/include/interval_set.h index 5b2b90d87ac..3090ef9570f 100644 --- a/src/include/interval_set.h +++ b/src/include/interval_set.h @@ -509,7 +509,6 @@ class interval_set { void erase(iterator &i) { _size -= i.get_len(); - ceph_assert(_size >= 0); m.erase(i._iter); } @@ -522,7 +521,6 @@ class interval_set { auto p = find_inc_m(start); _size -= len; - ceph_assert(_size >= 0); ceph_assert(p != m.end()); ceph_assert(p->first <= start); |