diff --git a/src/checkunusedfunctions.cpp b/src/checkunusedfunctions.cpp index 6d6db062f..0149c6a59 100644 --- a/src/checkunusedfunctions.cpp +++ b/src/checkunusedfunctions.cpp @@ -159,7 +159,7 @@ void CheckUnusedFunctions::check() const FunctionUsage &func = it->second; if (func.usedOtherFile || func.filename.empty()) continue; - if (it->first == "main" || it->first == "if") + if (it->first == "main" || it->first == "WinMain" || it->first == "if") continue; if (! func.usedSameFile) {