diff options
author | Stephan Vedder <vedder@mbits.info> | 2022-04-21 13:33:44 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-05-11 14:59:04 +0200 |
commit | d5b8691b43a4506554461f3f63ae8796d9e1c830 (patch) | |
tree | 2cd226c613091b8dea1bc3a322bb900615ae6d1a | |
parent | 4ad5ba7351447713ee7a6f79032bd4544c05987d (diff) | |
download | geocode-glib-d5b8691b43a4506554461f3f63ae8796d9e1c830.tar.gz |
build: Avoid using global arguments
-rw-r--r-- | meson.build | 22 |
1 files 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') |