Fix couple of trivial warnings reported by MSVC
[platform/upstream/VK-GL-CTS.git] / framework / delibs / deutil / deTimer.c
index 36f8190..bf8ceae 100644 (file)
@@ -131,7 +131,9 @@ void deTimer_disable (deTimer* timer)
                        if (success)
                        {
                                /* Wait for all callbacks to complete. */
-                               DE_VERIFY(WaitForSingleObject(waitEvent, INFINITE) == WAIT_OBJECT_0);
+                               DWORD res = WaitForSingleObject(waitEvent, INFINITE);
+                               DE_ASSERT(res == WAIT_OBJECT_0);
+                               DE_UNREF(res);
                                break;
                        }
                        else