]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use warning_level=2 by default
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 10 Nov 2019 10:39:15 +0000 (11:39 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Nov 2019 08:23:31 +0000 (09:23 +0100)
Let's bump up the warning level, and not add by -Wextra by hand. This is the
approach recommended by meson. The idea is that all projects should be as
similar as possible to make it easier for users to switch between projects.

meson.build

index 56b7bfea7046d3e3766527d0698a73b23b8eeecd..b7017f4f40c4027cd4c994fc80d8977202835b12 100644 (file)
@@ -8,6 +8,7 @@ project('systemd', 'c',
                 'prefix=/usr',
                 'sysconfdir=/etc',
                 'localstatedir=/var',
+                'warning_level=2',
         ],
         meson_version : '>= 0.46',
        )
@@ -323,7 +324,6 @@ elif want_fuzzbuzz
 endif
 
 possible_cc_flags = [
-        '-Wextra',
         '-Werror=undef',
         '-Wlogical-op',
         '-Wmissing-include-dirs',