]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon&test: resolve warning about inconsistent variable types 54116/head
authorcuiming_yewu <cuiming_yewu@cmss.chinamobile.com>
Fri, 20 Oct 2023 04:59:05 +0000 (12:59 +0800)
committercuiming <cuiming_yewu@cmss.chinamobile.com>
Wed, 3 Jan 2024 02:30:43 +0000 (10:30 +0800)
commit8028e2c5fce1cf000647b5214c05b32f38ae91b7
treeee5a3b45bb745f52c4e731c1c55988b1f5469d8b
parent09c4ea837a56712db2ed39b883fa0e3cb24d2928
mon&test: resolve warning about inconsistent variable types

resolve a warning issue about inconsistent variable types with
Building CXX object src/mon/CMakeFiles/mon.dir/Elector.cc.o
../src/mon/Elector.cc: In member function 'void Elector::
notify_rank_removed(int)':
../src/mon/Elector.cc:765:15: warning: comparison of integer
expressions of different signedness: 'int' and 'unsigned int'
[-Wsign-compare] if (rank_removed < paxos_size()) {
warning:comparison of integer expressions of different
signedness: 'unsigned int' and 'const int'
[-Wsign-compare] if (total < NR_ROUNDS)

Fixes: https://tracker.ceph.com/issues/63917
Signed-off-by: cuiming <cuiming_yewu@cmss.chinamobile.com>
src/mon/Elector.cc
src/test/common/test_fair_mutex.cc