This is the mail archive of the gcc@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]

Re: Proposal: fine-grained control over -Werror


Omer Shenker wrote:
I propose that for each warning -Wfoo, GCC should also accept -Wfoo=error and -Wfoo=warn.

Some of the warnings already use the = form, e.g. -Wformat=2. So there is a conflict here.


It is unlikely that anything will happen unless you volunteer a patch.

It is probably a lot of work to go through and identify everyplace where a warning is used and then add an optional error check. Probably not feasible unless the warning flags are redesigned a bit, which would be even more work.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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