https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87161
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- This would all be solved if invalid warning options were never errors, as Richi suggested. Otherwise I think there would need to be a first pass of the options to look for -Werror and then do a second pass, at which point -Werror would be active.