build: fix warning about using -Wextra flag
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 21 Jan 2022 16:12:30 +0000 (16:12 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 2 Feb 2022 14:56:45 +0000 (15:56 +0100)
commitd832326ae9b1b67c2976da293a459b51297fcfa0
tree113420bcf2081fb5a0804e94008e06c87043c6f2
parentecb904cc4596b33aa182e2a7c9edc3104ff981c3
build: fix warning about using -Wextra flag

Each build, meson would issue a warning reporting that the
"warning_level" setting should be used in place of adding -Wextra
directly to our build commands. Testing with meson 0.61 shows that the
only difference for gcc and clang builds between warning levels 1 and
2 is the addition of -Wextra, so we can remove the warning by deleting
our explicit set of Wextra and changing the build defaults to
warning_level 2.

Fixes: 524a0d5d66b9 ("build: enable extra warnings with meson")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
config/meson.build
meson.build