[gvfs] build: Avoid extra variable on compiler flag checking
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] build: Avoid extra variable on compiler flag checking
- Date: Wed, 23 Jan 2019 07:09:35 +0000 (UTC)
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]