Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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