• R/O
  • HTTP
  • SSH
  • HTTPS

MUtilities: Commit

MUtilities development repository


Commit MetaInfo

Revision7410d11e5e5ccc03a2e0e9530de6def7d5d308b0 (tree)
Zeit2022-06-16 22:49:19
AutorLoRd_MuldeR <mulder2@gmx....>
CommiterLoRd_MuldeR

Log Message

Added support for newer version of VS2022 + ignore the same warnings in "Release" configuration as in "Release_Static" configuration.

Ändern Zusammenfassung

Diff

--- a/MUtilities_VS2019.vcxproj
+++ b/MUtilities_VS2019.vcxproj
@@ -199,6 +199,7 @@
199199 <MinimalRebuild>false</MinimalRebuild>
200200 <ControlFlowGuard>false</ControlFlowGuard>
201201 <WholeProgramOptimization>true</WholeProgramOptimization>
202+ <DisableSpecificWarnings>4714;4324;4127</DisableSpecificWarnings>
202203 </ClCompile>
203204 <Link>
204205 <SubSystem>Windows</SubSystem>
--- a/MUtilities_VS2022.vcxproj
+++ b/MUtilities_VS2022.vcxproj
@@ -199,6 +199,7 @@
199199 <MinimalRebuild>false</MinimalRebuild>
200200 <ControlFlowGuard>false</ControlFlowGuard>
201201 <WholeProgramOptimization>true</WholeProgramOptimization>
202+ <DisableSpecificWarnings>4714;4324;4127</DisableSpecificWarnings>
202203 </ClCompile>
203204 <Link>
204205 <SubSystem>Windows</SubSystem>
--- a/include/MUtils/Version.h
+++ b/include/MUtils/Version.h
@@ -67,7 +67,11 @@ namespace MUtils
6767 #error Compiler is not supported!
6868 #endif
6969 #elif defined(_MSC_VER)
70- #if (_MSC_VER == 1930)
70+ #if (_MSC_VER == 1932)
71+ "MSVC 2022.2";
72+ #elif (_MSC_VER == 1931)
73+ "MSVC 2022.1";
74+ #elif (_MSC_VER == 1930)
7175 #if (_MSC_FULL_VER <= 193030706)
7276 "MSVC 2022.0";
7377 #else
--- a/src/Terminal_Win32.cpp
+++ b/src/Terminal_Win32.cpp
@@ -427,7 +427,7 @@ void MUtils::Terminal::set_icon(const QIcon &icon)
427427 bool success = false;
428428 if (const SetConsoleIconFun pSetConsoleIconFun = MUtils::Win32Utils::resolve<SetConsoleIconFun>(QLatin1String("kernel32"), QLatin1String("SetConsoleIcon")))
429429 {
430- const DWORD before = GetLastError();
430+ //const DWORD before = GetLastError();
431431 if (pSetConsoleIconFun(hIcon))
432432 {
433433 success = true;
Show on old repository browser