aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-12-07 17:00:51 +0400
committerDavid Gibson <david@gibson.dropbear.id.au>2020-12-08 15:30:28 +1100
commit30a56bce4f0bdf59ca52af244d4da5250924bfdd (patch)
treebd3e174452a22635ca984e69ea029a1b5690dd0c
parent5e735860c4786418c12751de639b519891a61192 (diff)
downloaddtc-30a56bce4f0bdf59ca52af244d4da5250924bfdd.tar.gz
meson: fix -Wall warning
Meson already handles Wall via the built-in warning_level option. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201207130055.462734-2-marcandre.lureau@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--meson.build22
1 files changed, 12 insertions, 10 deletions
diff --git a/meson.build b/meson.build
index 2c65104..b23ea1b 100644
--- a/meson.build
+++ b/meson.build
@@ -6,16 +6,18 @@ project('dtc', 'c',
cc = meson.get_compiler('c')
-add_project_arguments(cc.get_supported_arguments([
- '-Wall',
- '-Wpointer-arith',
- '-Wcast-qual',
- '-Wnested-externs',
- '-Wstrict-prototypes',
- '-Wmissing-prototypes',
- '-Wredundant-decls',
- '-Wshadow'
-]),language: 'c')
+add_project_arguments(
+ cc.get_supported_arguments([
+ '-Wpointer-arith',
+ '-Wcast-qual',
+ '-Wnested-externs',
+ '-Wstrict-prototypes',
+ '-Wmissing-prototypes',
+ '-Wredundant-decls',
+ '-Wshadow'
+ ]),
+ language: 'c'
+)
if host_machine.system() == 'windows'
add_project_arguments(