Skip to content

Commit 59b955e

Browse files
Suppress deprecation warning with -E (cppcheck-opensource#5050)
1 parent f5b1537 commit 59b955e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,10 +1054,10 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
10541054
}
10551055

10561056
#if defined(_WIN64)
1057-
if (SHOW_DEF_PLATFORM_MSG && default_platform)
1057+
if (SHOW_DEF_PLATFORM_MSG && default_platform && !mSettings.quiet)
10581058
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.");
10591059
#elif defined(_WIN32)
1060-
if (SHOW_DEF_PLATFORM_MSG && default_platform)
1060+
if (SHOW_DEF_PLATFORM_MSG && default_platform && !mSettings.quiet)
10611061
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.");
10621062
#endif
10631063

0 commit comments

Comments
 (0)