diff --git a/lib/settings.cpp b/lib/settings.cpp index 5f152087d..5675c02cd 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -94,7 +94,6 @@ std::string Settings::addEnabled(const std::string &str) return addEnabled(str.substr(prevPos)); } - bool handled = false; if (str == "all") { std::set::const_iterator it; for (it = id.begin(); it != id.end(); ++it) { @@ -108,7 +107,7 @@ std::string Settings::addEnabled(const std::string &str) if (str == "information") { _enabled.insert("missingInclude"); } - } else if (!handled) { + } else { if (str.empty()) return std::string("cppcheck: --enable parameter is empty"); else