[Bug c/64955] RFE: have -Wformat suggest the correct format string to use
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 27 15:23:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64955
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem here is that usually there are more possibilities of fixing the
code, and so it is a question what to suggest, it might as well just annoy
users when it constantly suggests the opposite hint the user wants to take. In
some cases, it is desirable to change the format specifier, in others to change
the argument (cast it to something, ...), etc.
More information about the Gcc-bugs
mailing list