From 55f77a38bf5ce6572ff88477ab2fc06e482b8856 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 3 Jan 2023 00:47:43 +0200 Subject: [PATCH] Disable some warnings related to dllexport on MSVC --- plugins/msvc/msvccompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/msvc/msvccompiler.cpp b/plugins/msvc/msvccompiler.cpp index 2e63335..e7ec3b7 100644 --- a/plugins/msvc/msvccompiler.cpp +++ b/plugins/msvc/msvccompiler.cpp @@ -123,6 +123,8 @@ ExternalTask::Arguments MsvcCompiler::_run(const ObjectFile &object, FS::Path &w argv.push_back("/permissive-"); argv.push_back("/wd4068"); // Unknown pragma + argv.push_back("/wd4251"); // Dll-interface required on type of member variable + argv.push_back("/wd4275"); // Dll-interface class derives from non-dll-interface class if(binfo.warning_level<4) { argv.push_back("/wd4244"); // Narrowing conversion on arg or return -- 2.45.2