[cfe-commits] [Patch] Format string warnings should refer to "%zu" etc by typedef type
Hans Wennborg
hans at chromium.org
Thu Dec 1 06:39:26 PST 2011
Hi all,
The attached patch changes the warning for
printf("%zu", 42.0);
from "conversion specifies type 'unsigned long'" to "conversion
specifies type 'size_t' (aka 'unsigned long')" if the relevant typedef
is in scope.
Please take a look and let me know if it's ok for me to land.
Thanks,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: format-strings-int-typedefs.c
Type: text/x-csrc
Size: 8513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111201/3eeb2439/attachment.c>
More information about the cfe-commits
mailing list