[gtkmm/use-dllexport-3-24-meson: 4/8] Meson: Ignore more warnings on Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/use-dllexport-3-24-meson: 4/8] Meson: Ignore more warnings on Visual Studio
- Date: Fri, 15 May 2020 04:04:32 +0000 (UTC)
commit e43de0bb37f3d92c3df4efaa3fc34c6c0badc94f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed May 13 17:04:39 2020 +0800
Meson: Ignore more warnings on Visual Studio
We can safely ignore warnings C4251, C4273 and C4275 as we are sure that we
want to use __declspec(dllimport) on the libraries that we depend upon, and
even with the C++11 versions, we are basically tied to the same CRT as Visual
Studio 2015 or later is required to build the C++11 branches of the the -mm
dependencies fully.
We can also ignore warning C4805 since a 'gboolean' is defined to mimic a
'bool'.
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 0c08a959..b80d1271 100644
--- a/meson.build
+++ b/meson.build
@@ -281,7 +281,7 @@ add_project_arguments(warning_flags, language: 'cpp')
# MSVC: Ignore warnings that aren't really harmful, but make those
# that should not be overlooked stand out.
if is_msvc
- foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530', '/wd4251']
+ foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530', '/wd4250', '/wd4251', '/wd4273',
'/wd4275', '/wd4805']
disabled_warning = cpp_compiler.get_supported_arguments(wd)
add_project_arguments(disabled_warning, language: 'cpp')
endforeach
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]