https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86134
--- Comment #10 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- On Fri, 15 Jun 2018, rguenth at gcc dot gnu.org wrote: > Joseph, do you agree that the following shouldn't fail the compilation? > > > echo 'int main(){}' | gcc -S -x c -Wno-unknown-warning-option -Wall -Werror > > -Wno-error=return-type - > <stdin>: In function ‘main’: > <stdin>:1:1: warning: control reaches end of non-void function [-Wreturn-type] > <stdin>: At top level: > cc1: error: unrecognized command line option "-Wno-unknown-warning-option" > [-Werror] > cc1: all warnings being treated as errors Yes.