fix compile warning

master
YuQing 2025-11-05 10:47:44 +08:00
parent e8a9967801
commit 4b9ef52da2
1 changed files with 1 additions and 3 deletions

View File

@ -50,9 +50,6 @@ int ioevent_init(IOEventPoller *ioevent, const char *service_name,
const int extra_events)
{
int bytes;
#ifdef OS_LINUX
int result;
#endif
ioevent->iterator.index = 0;
ioevent->iterator.count = 0;
@ -64,6 +61,7 @@ int ioevent_init(IOEventPoller *ioevent, const char *service_name,
#if IOEVENT_USE_URING
ioevent->use_io_uring = use_io_uring;
if (use_io_uring) {
int result;
if ((result=io_uring_queue_init(size, &ioevent->ring, 0)) < 0) {
return -result;
}