From 282af18e16d382fe5cfc0cdd71c882e9b1d40fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Fri, 12 Oct 2018 10:02:10 +0200 Subject: build: meson: Remove unnecessary auxiliary variable The variable containing the list of compiler arguments to be checked can be removed without any harm to readibility. The variable has been removed by appending directly to the list of common compiler arguments, those that are supported. --- meson.build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 6b0e1eebe6..034b7827f1 100644 --- a/meson.build +++ b/meson.build @@ -148,7 +148,7 @@ if enable_ld_gc endif if nm_debug - test_cflags = [ + common_flags += cc.get_supported_arguments([ '-fno-strict-aliasing', '-Wdeclaration-after-statement', '-Wfloat-equal', @@ -172,9 +172,7 @@ if nm_debug '-Wtypedef-redefinition', '-Wundef', '-Wunknown-attributes', - ] - - common_flags += cc.get_supported_arguments(test_cflags) + ]) endif add_project_arguments(common_flags, language: 'c') -- cgit v1.2.1