Suppress deprecation warning with -E (#5050)

This commit is contained in:
chrchr-github 2023-05-11 14:35:56 +02:00 committed by GitHub
parent f5b1537ed1
commit 59b955e014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1054,10 +1054,10 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
} }
#if defined(_WIN64) #if defined(_WIN64)
if (SHOW_DEF_PLATFORM_MSG && default_platform) if (SHOW_DEF_PLATFORM_MSG && default_platform && !mSettings.quiet)
printMessage("Windows 64-bit binaries currently default to the 'win64' platform. Starting with Cppcheck 2.13 they will default to 'native' instead. Please specify '--platform=win64' explicitly if you rely on this."); printMessage("Windows 64-bit binaries currently default to the 'win64' platform. Starting with Cppcheck 2.13 they will default to 'native' instead. Please specify '--platform=win64' explicitly if you rely on this.");
#elif defined(_WIN32) #elif defined(_WIN32)
if (SHOW_DEF_PLATFORM_MSG && default_platform) if (SHOW_DEF_PLATFORM_MSG && default_platform && !mSettings.quiet)
printMessage("Windows 32-bit binaries currently default to the 'win32A' platform. Starting with Cppcheck 2.13 they will default to 'native' instead. Please specify '--platform=win32A' explicitly if you rely on this."); printMessage("Windows 32-bit binaries currently default to the 'win32A' platform. Starting with Cppcheck 2.13 they will default to 'native' instead. Please specify '--platform=win32A' explicitly if you rely on this.");
#endif #endif