[Scummvm-git-logs] scummvm master -> 14cfd9b00644045b2d706fe8d590992dfad087da

bluegr noreply at scummvm.org
Fri Apr 25 16:22:34 UTC 2025


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

Summary:
14cfd9b006 CREATE_PROJECT: Use /diagnostics:caret for clearer MSVC warnings


Commit: 14cfd9b00644045b2d706fe8d590992dfad087da
    https://github.com/scummvm/scummvm/commit/14cfd9b00644045b2d706fe8d590992dfad087da
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2025-04-25T19:22:31+03:00

Commit Message:
CREATE_PROJECT: Use /diagnostics:caret for clearer MSVC warnings

Gets a bit closer to how modern GCC and Clang show warnings.

Introduced in VS 2017:
https://learn.microsoft.com/en-us/cpp/build/reference/diagnostics-compiler-diagnostic-options?view=msvc-170

Changed paths:
    devtools/create_project/msbuild.cpp


diff --git a/devtools/create_project/msbuild.cpp b/devtools/create_project/msbuild.cpp
index e9443b94cb1..29d03d7ed4e 100644
--- a/devtools/create_project/msbuild.cpp
+++ b/devtools/create_project/msbuild.cpp
@@ -387,6 +387,10 @@ void MSBuildProvider::outputGlobalPropFile(const BuildSetup &setup, std::ofstrea
 	properties << "\t\t\t<RuntimeTypeInfo>false</RuntimeTypeInfo>\n";
 #endif
 
+	// Print a bit more context for warnings, like modern GCC/Clang do
+	if (_msvcVersion.version >= 15)
+		properties << "\t\t\t<DiagnosticsFormat>Caret</DiagnosticsFormat>\n";
+
 	properties << "\t\t\t<WarningLevel>Level4</WarningLevel>\n"
 	           << "\t\t\t<TreatWarningAsError>false</TreatWarningAsError>\n"
 	           << "\t\t\t<CompileAs>Default</CompileAs>\n"




More information about the Scummvm-git-logs mailing list