[cfe-commits] [Patch] Warn about non-standard format strings (PR12017)

Joerg Sonnenberger joerg at britannica.bec.de
Mon Feb 20 11:04:32 PST 2012


On Mon, Feb 20, 2012 at 06:31:53PM +0000, Hans Wennborg wrote:
> I'm a little bit confused about the status of some of these. For
> example, should 'C' and 'S' be considered GNU extensions, and
> therefore allowable when using -std=gnu99?

In my opinion: no. -std=gnu99 specifies C99 with GNU compiler
extensions. It doesn't mean anything about the run time implementation.
As such, all the non-standard flags should go into a -Wformat-extensions
category and it should be enabled by default with -Wformat.

Joerg



More information about the cfe-commits mailing list