From 63a498c9663eb48e4715fd641732306e20c5e272 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 12 Dec 2024 15:42:53 -0800
Subject: [PATCH] Fixed warning C4189: 'cqe': local variable is initialized but
not referenced
---
src/file/windows/SDL_asyncio_windows_ioring.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/file/windows/SDL_asyncio_windows_ioring.c b/src/file/windows/SDL_asyncio_windows_ioring.c
index de22b2cdaf72b..aa59c61f33448 100644
--- a/src/file/windows/SDL_asyncio_windows_ioring.c
+++ b/src/file/windows/SDL_asyncio_windows_ioring.c
@@ -249,7 +249,6 @@ static SDL_AsyncIOTask *ioring_asyncioqueue_get_results(void *userdata)
static SDL_AsyncIOTask *ioring_asyncioqueue_wait_results(void *userdata, Sint32 timeoutMS)
{
WinIoRingAsyncIOQueueData *queuedata = (WinIoRingAsyncIOQueueData *) userdata;
- struct io_uring_cqe *cqe = NULL;
// the event only signals when the IoRing moves from empty to non-empty, so you have to try a (non-blocking) get_results first or risk eternal hangs.
SDL_AsyncIOTask *task = ioring_asyncioqueue_get_results(userdata);