[geocode-glib] build: Avoid using global arguments
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] build: Avoid using global arguments
- Date: Wed, 11 May 2022 13:06:13 +0000 (UTC)
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]