From 98f4e72f1ae492771a755bf86c88da7c21f20720 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Fri, 5 Jan 2018 23:30:41 +0900 Subject: removed most compiler warnings --- win32/oscilloview.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'win32/oscilloview.c') diff --git a/win32/oscilloview.c b/win32/oscilloview.c index 3414cd4..a4bd8cf 100644 --- a/win32/oscilloview.c +++ b/win32/oscilloview.c @@ -29,6 +29,7 @@ static struct { } g; static void on_destroy(HWND hwnd) { + (void)hwnd; g.oscilloview = 0; timeKillEvent(g.mmtimer); DeleteObject(g.whitepen); @@ -38,10 +39,16 @@ static void on_destroy(HWND hwnd) { static void CALLBACK mmtimer_cb(UINT timerid, UINT msg, DWORD_PTR userptr, DWORD_PTR dw1, DWORD_PTR dw2) { + (void)timerid; + (void)msg; + (void)userptr; + (void)dw1; + (void)dw2; PostMessage(g.oscilloview, WM_USER, 0, 0); } static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { + (void)cs; g.whitepen = CreatePen(PS_SOLID, 1, RGB(255, 255, 255)); ShowWindow(hwnd, SW_SHOW); //SetTimer(hwnd, TIMER_UPDATE, 16, 0); -- cgit v1.2.3