configure: avoid testing for negative compiler options
authorMarc Dietrich <marvin24@gmx.de>
Wed, 29 Nov 2017 21:25:05 +0000 (22:25 +0100)
committerDylan Baker <dylan@pnwbakers.com>
Sat, 2 Dec 2017 01:09:42 +0000 (17:09 -0800)
commitd93fabb013279d06ab025448afce1e5f665880ee
tree82e9f16e6e496585f7811fecf1bb92cf3af5788c
parent0ed952c7e9b811bc11dec64bd4bebcdf4222cc85
configure: avoid testing for negative compiler options

gcc seems to always accept unsupported negative compiler warning options:

echo "int i;" | gcc -c -xc -Wno-bob - # no error
echo "int i;" | gcc -c -xc -Walice -  # unsupported compiler option

Inverting the options fixes the tests.

V2: fix options in meson build

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
configure.ac
meson.build