From: Mikko Rasa Date: Mon, 2 Jan 2023 22:47:43 +0000 (+0200) Subject: Disable some warnings related to dllexport on MSVC X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=55f77a38bf5ce6572ff88477ab2fc06e482b8856;hp=353069077e5a35b5a7aa282fde939b1d1d7f68df;p=builder.git Disable some warnings related to dllexport on MSVC --- 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