function usage: don't report "main" and "if" as unused

This commit is contained in:
Daniel Marjamäki 2009-01-16 16:20:35 +00:00
parent 1db6c010e3
commit f663d1da84
1 changed files with 2 additions and 0 deletions

View File

@ -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;