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



commit a644c8763e1ed8a97fb1115046903d0c2583b8d5
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 d5916082..da0d731d 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]