]> granicus.if.org Git - gc/commitdiff
Workaround 'WinMain() is never used' cppcheck false warning (de_win)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 16 Mar 2017 22:20:11 +0000 (01:20 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 6 Apr 2017 08:33:22 +0000 (11:33 +0300)
* cord/tests/de_win.c (WinMain): Call GC_noop1(&WinMain) if CPPCHECK.

cord/tests/de_win.c

index 0af00df4d59b3cef8f91ef6d818a6160315c824a..733cc1d8baef381c442199f7c6ee46d179d78f4b 100644 (file)
@@ -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)
    {