fprintf: Correct the type for the 'cacheline' variable, it should be uint32_t

[ 22%] Building C object CMakeFiles/dwarves.dir/dwarves_fprintf.c.o
  /home/acme/git/pahole/dwarves_fprintf.c: In function ‘union__fprintf’:
  /home/acme/git/pahole/dwarves_fprintf.c:963:34: error: pointer targets in assignment from ‘int *’ to ‘uint32_t *’ {aka ‘unsigned int *’} differ in signedness [-Werror=pointer-sign]
                   uconf.cachelinep = &cacheline;
                                    ^
  cc1: all warnings being treated as errors

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2019-07-02 12:11:27 -03:00
parent 7b36fab5a8
commit f67c281f98
1 changed files with 1 additions and 1 deletions

View File

@ -930,7 +930,7 @@ static size_t union__fprintf(struct type *type, const struct cu *cu,
int indent = conf->indent;
struct conf_fprintf uconf;
uint32_t initial_union_cacheline;
int cacheline = 0; /* This will only be used if this is the outermost union */
uint32_t cacheline = 0; /* This will only be used if this is the outermost union */
if (indent >= (int)sizeof(tabs))
indent = sizeof(tabs) - 1;