core: Change last_seen_bit to uint32_t in class__find_holes()
And it is being compared against uint32_t variables, resulting in this clang warning: /var/home/acme/git/pahole/dwarves.c: In function ‘class__find_holes’: /var/home/acme/git/pahole/dwarves.c:1439:43: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 1439 | if (last_seen_bit < aligned_start && aligned_start <= bit_start) { | ^ Since it can't be less than zero, just make then uint32_t. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
789d8b3e1a
commit
df92cb6b8e
|
@ -1391,8 +1391,7 @@ void class__find_holes(struct class *class)
|
|||
struct class_member *pos, *last = NULL;
|
||||
uint32_t cur_bitfield_end = ctype->size * 8, cur_bitfield_size = 0;
|
||||
int bit_holes = 0, byte_holes = 0;
|
||||
uint32_t bit_start, bit_end;
|
||||
int last_seen_bit = 0;
|
||||
uint32_t bit_start, bit_end, last_seen_bit = 0;
|
||||
bool in_bitfield = false;
|
||||
|
||||
if (!tag__is_struct(class__tag(class)))
|
||||
|
|
Loading…
Reference in New Issue