From 1a6e69a80b14f2ea5f542109c1140e7160590a29 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Wed, 13 Jun 2012 10:50:50 -0700 Subject: [PATCH] Fix for problem: "Too many #ifdef configurations - cppcheck will only check 12 of 12" --- lib/cppcheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 55b9e63ba..d03a255a0 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -172,7 +172,7 @@ unsigned int CppCheck::processFile(const std::string& filename) configurations.push_back(_settings.userDefines); } - if (!_settings._force && configurations.size() >= _settings._maxConfigs) { + if (!_settings._force && configurations.size() > _settings._maxConfigs) { const std::string fixedpath = Path::toNativeSeparators(filename); ErrorLogger::ErrorMessage::FileLocation location; location.setfile(fixedpath);