[cfe-commits] [patch] -Wformat fixup for vprintf (and friends)

Jean-Daniel Dupas devlists at shadowlab.org
Thu Feb 16 01:57:19 PST 2012


Hi,

This patch implements a long standing FIXME.
When calling a non variadic format function(vprintf, vscanf, NSLogv, …), is the format argument references a parameter of the enclosing function, clang never warned.
With this change, clang will inhibit the warning only if the parameter is declared as a format string with a compatible type.


-- Jean-Daniel



-------------- next part --------------
A non-text attachment was scrubbed...
Name: vprintf.patch
Type: application/octet-stream
Size: 8669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120216/ac3568c9/attachment.obj>


More information about the cfe-commits mailing list