This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]