Prechádzať zdrojové kódy

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

Sam Lantinga 10 mesiacov pred
rodič
commit
63a498c966

+ 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)
 {
     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);