don't report that the function WinMain is unused
This commit is contained in:
parent
2c8a418c7e
commit
39c9a2a4da
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue