"format not a string literal"
Jeffrey A Law
law@cygnus.com
Sun Oct 31 23:03:00 GMT 1999
In message < m3puyi1lxs.fsf@localhost.localnet >you write:
> > Otherwise, we should probably make sure that people know that -Wformat
> > is useless when GNU gettext is involved.
>
> It's not useless because a) if you compile without optimization you'll
> get the warnings and b) this expression will change. It predates any
> gcc support.
>
> But this does not change the fact that now with this change flawless
> code produces tons of warnings. Unjustified.
I think we're going to need a switch to control this warning since there are
significant cases where we're going to get false positives.
jeff
ps. However, I would not necessarily call the warning "unjustified"; it is
doing precisely what we expect -- it's telling you that it was unable to
check the format strings for those functions.
More information about the Gcc-bugs
mailing list