diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2018-01-05 23:30:41 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2018-01-05 23:30:41 +0900 |
commit | 98f4e72f1ae492771a755bf86c88da7c21f20720 (patch) | |
tree | b1c85eadbe23432f956bc3377ea88a8449672175 /win32/oscilloview.c | |
parent | df6915f07e6cc13600a750b4fb4a8adf482b45f2 (diff) |
removed most compiler warnings
Diffstat (limited to 'win32/oscilloview.c')
-rw-r--r-- | win32/oscilloview.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |