MUtilities development repository
Revision | 7410d11e5e5ccc03a2e0e9530de6def7d5d308b0 (tree) |
---|---|
Zeit | 2022-06-16 22:49:19 |
Autor | ![]() |
Commiter | LoRd_MuldeR |
Added support for newer version of VS2022 + ignore the same warnings in "Release" configuration as in "Release_Static" configuration.
@@ -199,6 +199,7 @@ | ||
199 | 199 | <MinimalRebuild>false</MinimalRebuild> |
200 | 200 | <ControlFlowGuard>false</ControlFlowGuard> |
201 | 201 | <WholeProgramOptimization>true</WholeProgramOptimization> |
202 | + <DisableSpecificWarnings>4714;4324;4127</DisableSpecificWarnings> | |
202 | 203 | </ClCompile> |
203 | 204 | <Link> |
204 | 205 | <SubSystem>Windows</SubSystem> |
@@ -199,6 +199,7 @@ | ||
199 | 199 | <MinimalRebuild>false</MinimalRebuild> |
200 | 200 | <ControlFlowGuard>false</ControlFlowGuard> |
201 | 201 | <WholeProgramOptimization>true</WholeProgramOptimization> |
202 | + <DisableSpecificWarnings>4714;4324;4127</DisableSpecificWarnings> | |
202 | 203 | </ClCompile> |
203 | 204 | <Link> |
204 | 205 | <SubSystem>Windows</SubSystem> |
@@ -67,7 +67,11 @@ namespace MUtils | ||
67 | 67 | #error Compiler is not supported! |
68 | 68 | #endif |
69 | 69 | #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) | |
71 | 75 | #if (_MSC_FULL_VER <= 193030706) |
72 | 76 | "MSVC 2022.0"; |
73 | 77 | #else |
@@ -427,7 +427,7 @@ void MUtils::Terminal::set_icon(const QIcon &icon) | ||
427 | 427 | bool success = false; |
428 | 428 | if (const SetConsoleIconFun pSetConsoleIconFun = MUtils::Win32Utils::resolve<SetConsoleIconFun>(QLatin1String("kernel32"), QLatin1String("SetConsoleIcon"))) |
429 | 429 | { |
430 | - const DWORD before = GetLastError(); | |
430 | + //const DWORD before = GetLastError(); | |
431 | 431 | if (pSetConsoleIconFun(hIcon)) |
432 | 432 | { |
433 | 433 | success = true; |