This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
allowing #warning with -Werror
- From: John Breitenbach <breiten at lexmark dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 10 Jun 2008 14:49:35 -0400
- Subject: allowing #warning with -Werror
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