From 39c9a2a4da5a559018832d8d79ddc974714d8857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 24 Oct 2009 14:55:56 +0200 Subject: [PATCH] don't report that the function WinMain is unused --- src/checkunusedfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {