From: Ivan Maidanski Date: Thu, 16 Mar 2017 22:20:11 +0000 (+0300) Subject: Workaround 'WinMain() is never used' cppcheck false warning (de_win) X-Git-Tag: v7.6.2~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9afbc0c63e1440e46e6d68209f5a6bbb1b2312bb;p=gc Workaround 'WinMain() is never used' cppcheck false warning (de_win) * cord/tests/de_win.c (WinMain): Call GC_noop1(&WinMain) if CPPCHECK. --- diff --git a/cord/tests/de_win.c b/cord/tests/de_win.c index 0af00df4..733cc1d8 100644 --- a/cord/tests/de_win.c +++ b/cord/tests/de_win.c @@ -47,6 +47,9 @@ int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, HANDLE hAccel; GC_INIT(); +# if defined(CPPCHECK) + GC_noop1((GC_word)&WinMain); +# endif if (!hPrevInstance) {