[PATCH 1/5] meson: fix -Wall warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>

Meson already handles Wall via the built-in warning_level option.

Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
---
 meson.build | 22 ++++++++++++----------
 1 file 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(
-- 
2.29.0




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux