[Scummvm-git-logs] scummvm master -> 4c89d6dca3c4159861ab28e0d1fa557e062dc1a4

SupSuper supsuper at gmail.com
Sun Nov 24 04:58:22 UTC 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4c89d6dca3 MSVC: Enable C++ Conformance mode


Commit: 4c89d6dca3c4159861ab28e0d1fa557e062dc1a4
    https://github.com/scummvm/scummvm/commit/4c89d6dca3c4159861ab28e0d1fa557e062dc1a4
Author: SupSuper (supsuper at gmail.com)
Date: 2019-11-24T04:56:53Z

Commit Message:
MSVC: Enable C++ Conformance mode

Disables non-portable behaviors in modern Visual Studio.
This reduces the chance of code compiling correctly in MSVC but failing in other compilers.

Changed paths:
    devtools/create_project/msbuild.cpp


diff --git a/devtools/create_project/msbuild.cpp b/devtools/create_project/msbuild.cpp
index fe73509..d892ce3 100644
--- a/devtools/create_project/msbuild.cpp
+++ b/devtools/create_project/msbuild.cpp
@@ -364,6 +364,7 @@ void MSBuildProvider::outputGlobalPropFile(const BuildSetup &setup, std::ofstrea
 	              "\t\t\t<TreatWarningAsError>false</TreatWarningAsError>\n"
 	              "\t\t\t<CompileAs>Default</CompileAs>\n"
 	              "\t\t\t<MultiProcessorCompilation>true</MultiProcessorCompilation>\n"
+	              "\t\t\t<ConformanceMode>true</ConformanceMode>\n"
 	              "\t\t</ClCompile>\n"
 	              "\t\t<Link>\n"
 	              "\t\t\t<IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>\n"




More information about the Scummvm-git-logs mailing list