[Bug driver/84749] -w does not work with option property Warn
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 8 03:49:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84749
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-03-08
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
I recently noticed this too. For instance, here -w suppresses -Wreturn-type
but doesn't suppress the warning about -Wmudflap being no longer supported:
$ grep -B1 "Warn(" /src/gcc/svn/gcc/c-family/c.opt | head -n2
Wmudflap
C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
$ echo "f() { }" | gcc -S -Wall -Wextra -Wmudflap -Wreturn-type -w -xc -
xgcc: warning: switch ‘-Wmudflap’ is no longer supported
More information about the Gcc-bugs
mailing list