I added -Wno-unknown-warning-option a week or so ago.
I thought this was a valid option for both Clang and GCC. It turns out it is only supported by Clang. GCC does not support it but it will only complain about it if there are other errors in the file.
GCC will only complain about it if you pass it in the "positive" form. ie: -Wunknown-warning-option
$x86_64-pc-linux-gnu-gcc -Wunknown-warning-option /tmp/test.c
x86_64-pc-linux-gnu-gcc.real: error: unrecognized command line option ‘-Wunknown-warning-option’
And it will not complain in the negative form if there are no other errors in the file:
$ x86_64-pc-linux-gnu-gcc -Wno-unknown-warning-option /tmp/test.c
$ echo $?
0
Comment 1 by bugdroid1@chromium.org
, May 28 2016