[gvfs] build: Avoid extra variable on compiler flag checking



commit 8b7864294a2bb2360cc82c90c2d8a77f4e85ee27
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Tue Dec 18 08:59:55 2018 +0100

    build: Avoid extra variable on compiler flag checking
    
    The use of an extra variable can be avoided and still maintain
    readibility when checking compiler flags, so the build commands
    have been changed.

 meson.build | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 787be552..a774ff87 100644
--- a/meson.build
+++ b/meson.build
@@ -213,16 +213,14 @@ endforeach
 common_flags = ['-DHAVE_CONFIG_H']
 
 if gvfs_debug
-  test_cflags = [
+  common_flags += cc.get_supported_arguments([
     '-Wcast-align',
     '-Wmissing-declarations',
     '-Wmissing-prototypes',
     '-Wnested-externs',
     '-Wno-sign-compare',
     '-Wno-strict-aliasing',
-  ]
-
-  common_flags += cc.get_supported_arguments(test_cflags)
+  ])
 endif
 
 add_project_arguments(common_flags, language: 'c')


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