[warnings] fix initialization skip warnings

This commit is contained in:
Armin Novak
2026-01-21 16:29:26 +01:00
parent 01e1f1b595
commit 43e3b862af
3 changed files with 44 additions and 37 deletions

View File

@@ -479,17 +479,19 @@ static UINT ainput_process_message(ainput_server* ainput)
}
Stream_SetLength(s, ActualBytesReturned);
const UINT16 MessageId = Stream_Get_UINT16(s);
switch (MessageId)
{
case MSG_AINPUT_MOUSE:
error = ainput_server_recv_mouse_event(ainput, s);
break;
const UINT16 MessageId = Stream_Get_UINT16(s);
default:
WLog_ERR(TAG, "audin_server_thread_func: unknown MessageId %" PRIu16 "", MessageId);
break;
switch (MessageId)
{
case MSG_AINPUT_MOUSE:
error = ainput_server_recv_mouse_event(ainput, s);
break;
default:
WLog_ERR(TAG, "audin_server_thread_func: unknown MessageId %" PRIu16 "", MessageId);
break;
}
}
out: