build: fix detecting support for -Wno-* compiler flags
authorThomas Haller <thaller@redhat.com>
Tue, 24 Feb 2015 17:11:21 +0000 (18:11 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 24 Feb 2015 17:43:44 +0000 (18:43 +0100)
commit0462104317bfc097a90707a13590248707324846
treed53b854fa0337b575d49da539e7acf77ed2c5adb
parent600489003ff2eca33865a3d41abcc9fc03fd6bb1
build: fix detecting support for -Wno-* compiler flags

Since GCC 4.4, gcc does not warn about unknown -Wno-* flags. At
least, it does not warning unless another warning is raised as well
(https://gcc.gnu.org/wiki/FAQ#wnowarning).

We didn't notice up to now, because we only tested flags that GCC
actually supports.

Hack around this, by checking for the -W* counterpart instead.
m4/compiler_warnings.m4