[gtkmm/meson-msvc-warnings] Meson: Simplify compiler flag checking
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/meson-msvc-warnings] Meson: Simplify compiler flag checking
- Date: Tue, 24 May 2022 07:30:35 +0000 (UTC)
commit 72c5eb7fbf9be243d14c72f8f5cf1631fe553b8c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue May 24 14:49:51 2022 +0800
Meson: Simplify compiler flag checking
As Kjell suggested, don't use a for loop as get_supported_arguments() works on
a list and returns a list.
meson.build | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index fa88e40e..a5c771cf 100644
--- a/meson.build
+++ b/meson.build
@@ -302,10 +302,10 @@ if is_msvc
# 'var' : conversion from 'size_t' to 'type', possible loss of data (applies on 64-bit builds)
disable_warnings_list += '/wd4267'
endif
- foreach wd : disable_warnings_list
- disabled_warning = cpp_compiler.get_supported_arguments(wd)
- add_project_arguments(disabled_warning, language: ['cpp', 'c'])
- endforeach
+ add_project_arguments(
+ cpp_compiler.get_supported_arguments(disable_warnings_list),
+ language: ['cpp', 'c']
+ )
gui_app_ldflags += '-entry:mainCRTStartup'
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]