Browse Source

Fixed warning C4189: 'cqe': local variable is initialized but not referenced

Sam Lantinga 8 months ago
parent
commit
63a498c966
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/file/windows/SDL_asyncio_windows_ioring.c

+ 0 - 1
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)
 static SDL_AsyncIOTask *ioring_asyncioqueue_wait_results(void *userdata, Sint32 timeoutMS)
 {
 {
     WinIoRingAsyncIOQueueData *queuedata = (WinIoRingAsyncIOQueueData *) userdata;
     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.
     // 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);
     SDL_AsyncIOTask *task = ioring_asyncioqueue_get_results(userdata);