meson: use -Wextra if available
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Jul 2017 21:59:15 +0000 (17:59 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Jul 2017 22:26:01 +0000 (18:26 -0400)
-Wextra was not added to CFLAGS under meson by default, as it is
done by the autotools build.

C.f. 218f46711115669c26389a5bad79e57aa3c37f66.

meson.build

index ce59d18..22fc8f5 100644 (file)
@@ -230,7 +230,8 @@ if cxx.found()
         add_languages('cpp')
 endif
 
-foreach arg : ['-Wundef',
+foreach arg : ['-Wextra',
+               '-Wundef',
                '-Wlogical-op',
                '-Wmissing-include-dirs',
                '-Wold-style-definition',