[cfe-commits] r140777 - in /cfe/trunk: lib/Sema/SemaChecking.cpp test/Sema/format-strings.c

Joerg Sonnenberger joerg at britannica.bec.de
Thu Sep 29 23:51:58 PDT 2011


On Thu, Sep 29, 2011 at 04:01:39PM -0700, Ted Kremenek wrote:
> This isn't just about printf and scanf, but any function with the format attribute.  There are functions with that attribute where this isn't a no-op even when the format string is empty.  I saw such a case, which was the motivation for this change.
> 
> That said, the warning definitely is useful for printf and friends when there are no data arguments.  I'd like the warning to be the strictest when it can be.

Why not support -W(no-)format-zero-length like GCC then?

Joerg



More information about the cfe-commits mailing list