don't report that the function WinMain is unused

This commit is contained in:
Daniel Marjamäki 2009-10-24 14:55:56 +02:00
parent 2c8a418c7e
commit 39c9a2a4da
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ void CheckUnusedFunctions::check()
const FunctionUsage &func = it->second; const FunctionUsage &func = it->second;
if (func.usedOtherFile || func.filename.empty()) if (func.usedOtherFile || func.filename.empty())
continue; continue;
if (it->first == "main" || it->first == "if") if (it->first == "main" || it->first == "WinMain" || it->first == "if")
continue; continue;
if (! func.usedSameFile) if (! func.usedSameFile)
{ {