]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: correct unsigned/signed compiler wrn
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 2 Oct 2023 16:42:28 +0000 (16:42 +0000)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 2 Oct 2023 22:03:25 +0000 (22:03 +0000)
commit733a65704f8bbfd45b504cfc4afb7efca6f0f0df
tree010dbac29915060406b26b61f1bffd9fede5dda3
parent6c6f0d3109bc52559b018adf69849c14a19dfff1
osd: correct unsigned/signed compiler wrn

    /home/pdonnell/ceph/src/osd/OSD.cc: In member function ‘void OSD::ShardedOpWQ::stop_for_fast_shutdown()’:
    /home/pdonnell/ceph/src/osd/OSD.cc:11143:41: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
    11143 |   for (int shard_index = 0; shard_index < osd->num_shards; shard_index++) {

Fixes: https://tracker.ceph.com/issues/62851
Fixes: 210dbd4ff19ea66fd2f0109cc15aad53349be52f
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/osd/OSD.cc