meson: use -Wextra if available

-Wextra was not added to CFLAGS under meson by default, as it is
done by the autotools build.

C.f. 218f467111.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-07-04 17:59:15 -04:00
parent 1a680ae367
commit 75cf1d66b0

View 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',