https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65403
Bug ID: 65403 Summary: -Wno-error=<not implemented> is an error Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org If you want to silence warnings you can use -Wno-XXX without caring about whether a compiler implements -WXXX already. This doesn't seem to work with -Wno-error=XXX which errors on unknown XXX. It seems to me that we should treat -W[no-]error=XXX the same as -Wno-XXX for unknown XXX as it certainly will enable/disable errors for the warning XXX both if present or not present (no warnings anyway). > gcc-5 -Wall -Werror -Wno-error=logical-not-parentheses -S t.c > gcc-4.8 -Wall -Werror -Wno-error=logical-not-parentheses -S t.c cc1: error: -Werror=logical-not-parentheses: no option -Wlogical-not-parentheses > gcc-5 -Wno-error=foo -S t.c cc1: error: -Werror=foo: no option -Wfoo