crush/builder.c: In function 'crush_remove_list_bucket_item':
crush/builder.c:977:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (weight < bucket->h.weight)
^
crush/builder.c: In function 'crush_remove_tree_bucket_item':
crush/builder.c:1031:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (weight < bucket->h.weight)
^
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
14eb1a73c71d81b7f193fce27c59cb3babf3e74a)
{
unsigned i, j;
int newsize;
- int weight;
+ unsigned weight;
for (i = 0; i < bucket->h.size; i++)
if (bucket->h.items[i] == item)
for (i = 0; i < bucket->h.size; i++) {
int node;
- int weight;
+ unsigned weight;
int j;
int depth = calc_depth(bucket->h.size);