Skip to content

Instantly share code, notes, and snippets.

@radare
Created July 24, 2015 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radare/a2cb01acfdee42a330ec to your computer and use it in GitHub Desktop.
Save radare/a2cb01acfdee42a330ec to your computer and use it in GitHub Desktop.
pf warns
p_format.c: In function ‘r_print_format_register’:
p_format.c:895:63: warning: passing argument 2 of ‘p->get_register_value’ discards ‘const’ qualifier from pointer target type
if (!SEEVALUE) p->printf("%s : 0x%08"PFMT64x"\n", ri->name, p->get_register_value (p->reg, ri));
^
p_format.c:895:63: note: expected ‘struct RRegItem *’ but argument is of type ‘const struct RRegItem *’
p_format.c:896:38: warning: passing argument 2 of ‘p->get_register_value’ discards ‘const’ qualifier from pointer target type
else p->printf("0x%08"PFMT64x"\n", p->get_register_value (p->reg, ri));
^
p_format.c:896:38: note: expected ‘struct RRegItem *’ but argument is of type ‘const struct RRegItem *’
p_format.c:898:21: warning: passing argument 2 of ‘p->get_register_value’ discards ‘const’ qualifier from pointer target type
p->printf ("%d}", p->get_register_value (p->reg, ri));
^
p_format.c:898:21: note: expected ‘struct RRegItem *’ but argument is of type ‘const struct RRegItem *’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment