Is it possible to add -pedantic to GCC command line, yet have it not warn about 'long long'

Posted by doublep on Stack Overflow See other posts from Stack Overflow or by doublep
Published on 2010-04-22T20:06:28Z Indexed on 2010/04/22 20:13 UTC
Read the original article Hit count: 410

Filed under:
|
|

I'm using mostly GCC to develop my library, but I'd like to ensure cross-compiler compatibility and especially standard conformance as much as possible. For this, I have add several -W... flags to command line. I'd also add -pedantic, but I have a problem with its warning about long long type. The latter is important for my library and is properly guarded with #if code, i.e. is not compiled on compilers that don't know it anyway.

In short: can I have GCC in -pedantic mode warn about any extension except long long?

© Stack Overflow or respective owner

Related posts about gcc

Related posts about pedantic