[gnome-disk-utility] build: Avoid extra variable on compiler flag checking
- From: Kai Lüke <kailueke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] build: Avoid extra variable on compiler flag checking
- Date: Sun, 7 Jul 2019 12:25:21 +0000 (UTC)
commit c3f0ea8737d9793683dd9a885f9fcdf225752b73
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Thu Jul 4 07:37:49 2019 +0200
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 53f1bb57..8baeab5f 100644
--- a/meson.build
+++ b/meson.build
@@ -34,7 +34,7 @@ config_h.set_quoted('GETTEXT_PACKAGE', gdu_name)
compiler_flags = []
if get_option('buildtype').contains('debug')
- test_cflags = [
+ compiler_flags += cc.get_supported_arguments([
'-fno-strict-aliasing',
'-Wcast-align',
'-Wdeclaration-after-statement',
@@ -63,9 +63,7 @@ if get_option('buildtype').contains('debug')
'-Wundef',
'-Wunused-but-set-variable',
'-Wwrite-strings',
- ]
-
- compiler_flags += cc.get_supported_arguments(test_cflags)
+ ])
endif
add_project_arguments(compiler_flags, language: 'c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]