aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-04 14:02:00 +0200
committerDavid Robillard <d@drobilla.net>2020-07-04 14:02:00 +0200
commitf00254d45b064d4203df323f27e0e30f7ec821f7 (patch)
treee865bd75feaec454a0c80b5d635d3cd469c1dd6d
parent3b497c847d149b11d45c6ac40b976496d9ad116d (diff)
Windows: Fix old-style declaration warning
-rw-r--r--pugl/detail/win.c5
-rw-r--r--pugl/detail/win_gl.c2
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,