This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
warning for -Wformat and non-literal-string format
- To: Ken Raeburn <raeburn at raeburn dot org>
- Subject: warning for -Wformat and non-literal-string format
- From: Gavin Romig-Koch <gavin at cygnus dot com>
- Date: Thu, 7 Oct 1999 16:33:41 -0400 (EDT)
- Cc: gcc-patches at gcc dot gnu dot org
- References: <tx14sg3aurp.fsf@raeburn.org>
Hey Ken, long time...
At minimum I think you need to change the doc to say that -Wformat
will warn if the format string isn't a string literal.
My preference would be to have your new functionality controled
by an option; perhaps -Wformat continues to do what it always did,
and -Wformat-all would also print your new warning. But I'm open
to other opinions.
(Oh, and does the FSF have an assignment from you?)
-gavin...