From f663d1da84d5a72f153dc3a3ec65ab9af52a1ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 16 Jan 2009 16:20:35 +0000 Subject: [PATCH] function usage: don't report "main" and "if" as unused --- src/checkfunctionusage.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;