diff --git a/src/win32_window.c b/src/win32_window.c index c120b3a17..8dd91b46e 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -2181,13 +2181,12 @@ void _glfwWaitEventsWin32(void) void _glfwWaitEventsTimeoutWin32(double timeout) { - DWORD ret; double timeStart, timeEnd, timeWait; timeStart = glfwGetTime(); timeWait = timeout; do { - ret = MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeWait * 1e3), QS_ALLINPUT); + MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeWait * 1e3), QS_ALLINPUT); _glfwPollEventsWin32(); timeEnd = glfwGetTime();