[cfe-dev] patch for clang's stdint.h to make it compile with -Werror

berkus infinitus berkus at gmail.com
Mon Apr 9 04:26:25 PDT 2012


Hi!

The default stdint.h coming with clang has an issue of producing tons
on redefinition warnings, which totally makes it unusable with
-Werror.

Attached is a small diff that fixes it by #undefing some symbols
before attempting to define them again. It would be awesome if you
could integrate this!

TIA, Berkus.

not sure if this goes through as I'm not a subscriber, lets see...

-- 
main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_stdint.h_patch.diff
Type: application/octet-stream
Size: 5865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120409/a3b0d837/attachment.obj>


More information about the cfe-dev mailing list