diff --git a/src/checkfunctionusage.cpp b/src/checkfunctionusage.cpp index 429c4ff6f..7116020d9 100644 --- a/src/checkfunctionusage.cpp +++ b/src/checkfunctionusage.cpp @@ -148,6 +148,8 @@ void CheckFunctionUsage::check() const FunctionUsage &func = it->second; if (func.usedOtherFile || func.filename.empty()) continue; + if (it->first == "main" || it->first == "if") + continue; if (! func.usedSameFile) { std::string filename;