[gitg/wip/valadoc: 3/12] meson: Remove auxiliary variables



commit d4b833900bbd107571472b5c96e94ba898273625
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Mon Oct 1 21:54:04 2018 +0200

    meson: Remove auxiliary variables
    
    Auxiliary variables are used when checking and setting compiler
    arguments. These variables are not necessary and have been removed.

 meson.build | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/meson.build b/meson.build
index e987f902..3cab1990 100644
--- a/meson.build
+++ b/meson.build
@@ -78,7 +78,7 @@ if get_option('deprecations')
 endif
 
 if gitg_debug
-  test_cflags = [
+  warn_flags += cc.get_supported_arguments([
     '-Werror=format=2',
     '-Werror=implicit-function-declaration',
     '-Werror=init-self',
@@ -90,9 +90,7 @@ if gitg_debug
     '-Wnested-externs',
     '-Wstrict-prototypes',
     '-Wuninitialized',
-  ]
-
-  warn_flags += cc.get_supported_arguments(test_cflags)
+  ])
 endif
 
 add_project_arguments(common_flags, language: 'c')
@@ -100,9 +98,7 @@ add_project_arguments(common_flags, language: 'c')
 # vala compiler flags
 vapi_dir = join_paths(meson.source_root(), 'vapi')
 
-common_flags = '--vapidir=' + vapi_dir
-
-add_project_arguments(common_flags, language: 'vala')
+add_project_arguments('--vapidir=' + vapi_dir, language: 'vala')
 
 ldflag = '-Wl,--version-script'
 have_version_script = host_machine.system().contains('linux') and cc.has_argument(ldflag)


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