PATCH: Add format string suggestions to -Wformat warnings
Andrew Pinski
pinskia@gmail.com
Wed Aug 15 00:00:00 GMT 2007
On 8/14/07, Dan Hipschman <dsh@google.com> wrote:
> foo.c:6: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int'
> foo.c:6: warning: acceptable formats for this type are: zo, zu, zx, zX
Really I think this should be a "note:" and not a "warning".
When that is done, you need to change the testcase to take into
account that change as dg-warning no longer accepts "note:" messages;
only dg-message does.
Thanks,
Andrew Pinski
More information about the Gcc-patches
mailing list