This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "format not a string literal"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]