Gcc accepts any -Wno-foobar, even if -Wfoobar doesn't exist: [...@gnu-6 gcc]$ ./xgcc -B./ -Wno-foobar -S /tmp/x.c [...@gnu-6 gcc]$ ./xgcc -B./ -Wfoobar -S /tmp/x.c cc1: error: unrecognized command line option "-Wfoobar" [...@gnu-6 gcc]$
-- Summary: [4.4 Regression] Gcc accepts invalid options Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl dot tools at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39147