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 12:33, Daniel Janzon wrote:
>
>>>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:

You didn't say you were doing a history project ;-)

(It would have helped to say you're not using a currently supported version.)

> 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.

Right.  There is more fine-grained control over warnings in recent releases.




[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