]> git.tdb.fi Git - builder.git/commitdiff
Disable some warnings related to dllexport on MSVC
authorMikko Rasa <tdb@tdb.fi>
Mon, 2 Jan 2023 22:47:43 +0000 (00:47 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 2 Jan 2023 22:51:47 +0000 (00:51 +0200)
plugins/msvc/msvccompiler.cpp

index 2e6333527b457f3456e8e2b7a8e4bc7b33849226..e7ec3b7bbba2ba8f5afe128c4c54012126ced09b 100644 (file)
@@ -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