CppCheck: removed changing of `debugwarnings` for non-accepted files (#4965)

This commit is contained in:
Oliver Stöneberg 2023-04-28 12:30:01 +02:00 committed by GitHub
parent 0924e6616e
commit 5658319976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -625,10 +625,6 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
{
mExitCode = 0;
// only show debug warnings for accepted C/C++ source files
if (!Path::acceptFile(filename))
mSettings.debugwarnings = false;
if (Settings::terminated())
return mExitCode;