[cfe-users] Warnings with stdint.h?

2019-03-14 Thread Kumar Gala via cfe-users
I’m trying to build for ARM and was surprised to get warnings from the stdint.h. Is this expected behavior? Here’s what my c file looks like: foo.c: #include How I’m invoking the compiler: /usr/bin/clang --target=arm-none-eabi -I/usr/lib64/clang/7.0.1/include -nostdinc -c foo.c I’m surpri

Re: [cfe-users] Warnings with stdint.h?

2019-03-14 Thread Peter Smith via cfe-users
Hello Kumar, (reposting as I wasn't subscribed to cfe-users). Yes I think that these warnings are expected when the clang stdint.h is included via -I. Normally it is included as a system header which suppresses the warnings (-isystem). From the comment in https://github.com/llvm-mirror/clang/blob

Re: [cfe-users] Warnings with stdint.h?

2019-03-14 Thread Kumar Gala via cfe-users
Ah the bit about -isystem and suppressing warnings was good to know. For a few cases in our build system we didn’t have -isystem for /usr/lib64/clang/7.0.1/include. - k > On Mar 14, 2019, at 11:23 AM, Peter Smith wrote: > > Hello Kumar, (reposting as I wasn't subscribed to cfe-users). > > Y