From 94ae478f829ff8c942647610603516492c3f22d6 Mon Sep 17 00:00:00 2001 From: firewave Date: Thu, 13 Apr 2023 15:28:40 +0200 Subject: [PATCH] CppCheck: removed changing of `debugwarnings` for non-accepted files --- lib/cppcheck.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 8bf9d9b7f84..2a960edc7e5 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -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;