[cfe-commits] r148859 - in /cfe/trunk: lib/Analysis/FormatString.cpp lib/Analysis/PrintfFormatString.cpp lib/Analysis/ScanfFormatString.cpp test/Sema/format-strings-scanf.c test/Sema/format-strings.c

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jan 24 15:58:58 PST 2012


On Tue, Jan 24, 2012 at 03:43:53PM -0800, Chandler Carruth wrote:
> While it might be possible to make -Wformat include -Wformat-gnu when not
> compiling in one af the '-std=gnu*' language dialect variations, that would
> seem a really confusing bit of behavior. I like warning flags being simple
> set arithmetic.

-std=gnu* is a bad idea for coupling. The extension set of the compiler
has no relation to the libc implementation. Heck, I wouldn't be
surprised if some of the embedded linux libcs don't implement the glibc
extensions either.

Joerg



More information about the cfe-commits mailing list