build-sys: require all defines under #if to be present
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 3 Oct 2017 10:11:49 +0000 (12:11 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 4 Oct 2017 10:09:50 +0000 (12:09 +0200)
This should help to catch any errors with typos and HAVE/ENABLE mismatches.

meson.build

index 2b1da8a..da0f015 100644 (file)
@@ -242,7 +242,7 @@ if cxx.found()
 endif
 
 foreach arg : ['-Wextra',
-               '-Wundef',
+               '-Werror=undef',
                '-Wlogical-op',
                '-Wmissing-include-dirs',
                '-Wold-style-definition',