This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: "format not a string literal"
- To: law at cygnus dot com
- Subject: Re: "format not a string literal"
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Thu, 14 Oct 1999 11:17:06 -0700
- Cc: tromey at cygnus dot com, gcc-patches at egcs dot cygnus dot com
- References: <87r9ix4z1b.fsf@cygnus.com><31838.939923476@upchuck.cygnus.com>
Jeff> Instead we need to shift our focus to the implementation details
Jeff> like is it on or off by default with -Wformat? It's name, etc
Jeff> etc. Given that info we can cobble up the changes to make this
Jeff> a selectable warning quite quickly.
My suggestion:
* Keep the traditional meaning for -Wformat
(Existing setups stay the same)
* Add -Wformat-nonliteral to warn about nonliteral strings
T