Gcc accepts any -Wno-foobar, even if -Wfoobar doesn't exist: [hjl@gnu-6 gcc]$ ./xgcc -B./ -Wno-foobar -S /tmp/x.c [hjl@gnu-6 gcc]$ ./xgcc -B./ -Wfoobar -S /tmp/x.c cc1: error: unrecognized command line option "-Wfoobar" [hjl@gnu-6 gcc]$
I think this is by design.
(In reply to comment #1) > I think this is by design. > It is different from gcc 4.3. Where is this feature documented?
*** This bug has been marked as a duplicate of 28322 ***