[geocode-glib] build: Avoid using global arguments



commit d5b8691b43a4506554461f3f63ae8796d9e1c830
Author: Stephan Vedder <vedder mbits info>
Date:   Thu Apr 21 13:33:44 2022 +0200

    build: Avoid using global arguments

 meson.build | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/meson.build b/meson.build
index 03f0242..a87603b 100644
--- a/meson.build
+++ b/meson.build
@@ -26,19 +26,19 @@ configure_file(output: 'config.h', configuration : conf)
 
 gnome = import('gnome')
 
-add_global_arguments('-Wall', language: 'c')
+add_project_arguments('-Wall', language: 'c')
 cc = meson.get_compiler('c')
 if cc.get_id() == 'gcc'
-    add_global_arguments('-Wchar-subscripts',
-                         '-Wmissing-declarations',
-                         '-Wmissing-prototypes',
-                         '-Wnested-externs',
-                         '-Wpointer-arith',
-                         '-Wcast-align',
-                         '-Wsign-compare',
-                         '-Wredundant-decls',
-                         '-fno-strict-aliasing',
-                         language: 'c')
+    add_project_arguments('-Wchar-subscripts',
+                          '-Wmissing-declarations',
+                          '-Wmissing-prototypes',
+                          '-Wnested-externs',
+                          '-Wpointer-arith',
+                          '-Wcast-align',
+                          '-Wsign-compare',
+                          '-Wredundant-decls',
+                          '-fno-strict-aliasing',
+                          language: 'c')
 endif
 
 subdir('geocode-glib')


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