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;