[pangomm/pangomm-2-42.meson-msvc: 10/10] meson: Ignore warning C4251 on MSVC builds



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

    meson: Ignore warning C4251 on MSVC builds
    
    We might be building against glibmm that is built with
    __declspec(dllexport), meaning that warning C4251 will be generated as
    we are now in-turn using __declspec(dllimport).  We can just ignore this
    compiler warning, 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 357784f..f9774fc 100644
--- a/meson.build
+++ b/meson.build
@@ -240,7 +240,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']
     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]