[cfe-commits] [Patch] Make -Wformat accept printf("%hhx", c); with -funsigned-char (PR12761)

Hans Wennborg hans at chromium.org
Tue May 8 03:20:10 PDT 2012


Hi all,

For "%hhx", printf expects an unsigned char. This patch makes Clang
accept a 'char' argument for that when using -funsigned-char.

(Also removing some trailing whitespace and adding a few curly braces
while we're here.)

Please let me know if this is OK to commit.

Thanks,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr12761.patch
Type: application/octet-stream
Size: 2996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120508/ff38d89e/attachment.obj>


More information about the cfe-commits mailing list