RE: Use -Werror but don't fail on #warning directives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>On 29 April 2013 11:06, Daniel Janzon wrote:
>> int main()
>> {
>>   #warning "not implemented yet"
>> }
>
>-Werror -Wno-error=cpp should do it

Thanks, it didn't work on gcc-4.4 though:

daniel@mio$ gcc-4.4 -Werror -Wno-error=cpp -o test-warning test-warning.c
cc1: error: -Werror=cpp: No option -Wcpp
daniel@mio$ 

So maybe I'm quite likely stuck, I mean they probably added no-cpp in
later releases of gcc because it couldn't be done in earlier releases.
Of course it's possible to explicitly list all warnings I want to fail on
but that's kind of ugly.

Thanks anyway,
Daniel




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux