allowing #warning with -Werror
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: gcc-help@xxxxxxxxxxx
- Subject: allowing #warning with -Werror
- From: John Breitenbach <breiten@xxxxxxxxxxx>
- Date: Tue, 10 Jun 2008 14:49:35 -0400
- User-agent: Thunderbird 2.0.0.12 (X11/20080213)
Is there a way to use -Werror and still allow explicit warnings from
#warning to be allowed (i.e. just a warning)?
I was hoping that I could use -Wc,-Werror, thinking that #warnings come
from the preprocessor, and if the preprocessor didn't see -Werror, then
it wouldn't know that it should return an error status. However, -Wc
doesn't appear to exist. Anyone have an idea how to somehow exclude
this specific warning from causing a failure return status?
Thanks, JB
[Index of Archives]
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]