[pangomm/cairomm-meson-improvements-2-42: 3/4] Meson: Ignore warning C4275 on Visual Studio



commit 957f157f60fd6b278eec7bb4154b14cfaa186d2f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue May 5 15:35:09 2020 +0800

    Meson: Ignore warning C4275 on Visual Studio
    
    Since we are basically using __declspec(dllimport) from dependent
    -mm libraries that are on the same CRT, we could just disregard this
    warning.

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 7f23903..07755a7 100644
--- a/meson.build
+++ b/meson.build
@@ -313,7 +313,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', '/wd4251', '/wd4275']
     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]