From 59b955e0145b1cca9756841a918d66db11bbef0e Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Thu, 11 May 2023 14:35:56 +0200 Subject: [PATCH] Suppress deprecation warning with -E (#5050) --- cli/cmdlineparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index e74eaa6ab..96390367a 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -1054,10 +1054,10 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) } #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."); #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."); #endif