[libgit2-glib] meson: Remove unnecessary auxiliary variable
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] meson: Remove unnecessary auxiliary variable
- Date: Sat, 9 Feb 2019 13:01:08 +0000 (UTC)
commit d56e5dfc74988f3b6c5ce1344ffda665de1d6cef
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Wed Oct 24 22:50:49 2018 +0200
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(-)
---
diff --git a/meson.build b/meson.build
index e21f99a..1a069b2 100644
--- a/meson.build
+++ b/meson.build
@@ -49,7 +49,7 @@ if cc.get_id() == 'msvc'
# in GLib, based on _Win32_Programming_ by Rector and Newcomer
common_flags = ['-FImsvc_recommended_pragmas.h']
else
- test_cflags = [
+ common_flags = cc.get_supported_arguments([
'-ffast-math',
'-fstrict-aliasing',
'-Wpointer-arith',
@@ -76,9 +76,7 @@ else
'-Werror=return-type',
'-Werror=array-bounds',
'-Werror=write-strings'
- ]
-
- common_flags = cc.get_supported_arguments(test_cflags)
+ ])
endif
if libgit2_glib_buildtype.contains('debug')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]