[eog: 13/21] build: Avoid extra variable on compiler flag checking
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 13/21] build: Avoid extra variable on compiler flag checking
- Date: Mon, 15 Jul 2019 19:30:46 +0000 (UTC)
commit 849564f8369cd233aab7e61101f37a3fa96be51a
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Fri Jun 28 08:01:17 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 081be73a..307ffca1 100644
--- a/meson.build
+++ b/meson.build
@@ -74,7 +74,7 @@ common_flags = ['-DHAVE_CONFIG_H']
compiler_flags = []
if get_option('buildtype').contains('debug')
- test_cflags = [
+ compiler_flags += cc.get_supported_arguments([
'-Werror=format=2',
'-Werror=implicit-function-declaration',
'-Werror=init-self',
@@ -84,9 +84,7 @@ if get_option('buildtype').contains('debug')
'-Werror=return-type',
'-Wnested-externs',
'-Wstrict-prototypes',
- ]
-
- compiler_flags += cc.get_supported_arguments(test_cflags)
+ ])
endif
add_project_arguments(common_flags + compiler_flags, language: 'c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]