From f00254d45b064d4203df323f27e0e30f7ec821f7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Jul 2020 14:02:00 +0200 Subject: Windows: Fix old-style declaration warning --- pugl/detail/win.c | 5 +++-- pugl/detail/win_gl.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pugl/detail/win.c b/pugl/detail/win.c index 3f9f8f9..e06f021 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -585,8 +585,9 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam) RedrawWindow(view->impl->hwnd, NULL, NULL, RDW_INVALIDATE|RDW_ALLCHILDREN|RDW_INTERNALPAINT); } else if (wParam >= PUGL_USER_TIMER_MIN) { - const PuglEventTimer ev = {PUGL_TIMER, 0, wParam - PUGL_USER_TIMER_MIN}; - puglDispatchEvent(view, (const PuglEvent*)&ev); + PuglEvent ev = {{PUGL_TIMER, 0}}; + ev.timer.id = wParam - PUGL_USER_TIMER_MIN; + puglDispatchEvent(view, &ev); } break; case WM_EXITSIZEMOVE: diff --git a/pugl/detail/win_gl.c b/pugl/detail/win_gl.c index 0ebc5b9..23c5d83 100644 --- a/pugl/detail/win_gl.c +++ b/pugl/detail/win_gl.c @@ -294,7 +294,7 @@ puglGetProcAddress(const char* name) } const PuglBackend* -puglGlBackend() +puglGlBackend(void) { static const PuglBackend backend = {puglWinGlConfigure, puglWinGlCreate, -- cgit v1.2.1