This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/63499] gcc treats unknown -Wno-xxx options differently than -Wxxx
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Oct 2014 18:11:44 +0000
- Subject: [Bug c/63499] gcc treats unknown -Wno-xxx options differently than -Wxxx
- Auto-submitted: auto-generated
- References: <bug-63499-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63499
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Zbigniew JÄdrzejewski-Szmek from comment #3)
> So, there's no way to programmatically check whether a flag is supported,
> without resorting to grepping the output or something like that. Great.
No there is way just use the positive side rather than the no- option.