[pangomm/master.msvc-meson.improvements: 4/4] meson: Ignore warning C4251 and C4275 on MSVC builds



commit 818c7b4f3c79681b0bb46580aa98b56564448c67
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Mar 10 18:33:28 2020 +0800

    meson: Ignore warning C4251 and C4275 on MSVC builds
    
    We might be building against glibmm that is built with
    __declspec(dllexport), meaning that warnings C4251 and C4275 will be
    generated as we are now in-turn using __declspec(dllimport).  We can
    just ignore these compiler warnings, since we are pretty sure what we
    are doing at this point.

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 1879379..71d1d39 100644
--- a/meson.build
+++ b/meson.build
@@ -238,7 +238,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']
+  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]