From 189abc73f380b60ab04c9e456b36d4a3cbe0d265 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 9 Sep 2024 15:08:17 +0200 Subject: [PATCH] [client,sdl] fix missing field initializer warnings --- client/SDL/SDL2/sdl_pointer.cpp | 22 ++++++++++++++++++---- client/SDL/SDL3/sdl_pointer.cpp | 8 ++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/client/SDL/SDL2/sdl_pointer.cpp b/client/SDL/SDL2/sdl_pointer.cpp index c1037e0f2..f9e8707e1 100644 --- a/client/SDL/SDL2/sdl_pointer.cpp +++ b/client/SDL/SDL2/sdl_pointer.cpp @@ -188,10 +188,24 @@ static BOOL sdl_Pointer_SetPosition(rdpContext* context, UINT32 x, UINT32 y) BOOL sdl_register_pointer(rdpGraphics* graphics) { - const rdpPointer pointer = { sizeof(sdlPointer), sdl_Pointer_New, - sdl_Pointer_Free, sdl_Pointer_Set, - sdl_Pointer_SetNull, sdl_Pointer_SetDefault, - sdl_Pointer_SetPosition, { 0 } }; + const rdpPointer pointer = { sizeof(sdlPointer), + sdl_Pointer_New, + sdl_Pointer_Free, + sdl_Pointer_Set, + sdl_Pointer_SetNull, + sdl_Pointer_SetDefault, + sdl_Pointer_SetPosition, + {}, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + nullptr, + nullptr, + {} }; graphics_register_pointer(graphics, &pointer); return TRUE; } diff --git a/client/SDL/SDL3/sdl_pointer.cpp b/client/SDL/SDL3/sdl_pointer.cpp index fabdf6de9..2e6a2a9d7 100644 --- a/client/SDL/SDL3/sdl_pointer.cpp +++ b/client/SDL/SDL3/sdl_pointer.cpp @@ -186,10 +186,10 @@ static BOOL sdl_Pointer_SetPosition(rdpContext* context, UINT32 x, UINT32 y) BOOL sdl_register_pointer(rdpGraphics* graphics) { - const rdpPointer pointer = { sizeof(sdlPointer), sdl_Pointer_New, - sdl_Pointer_Free, sdl_Pointer_Set, - sdl_Pointer_SetNull, sdl_Pointer_SetDefault, - sdl_Pointer_SetPosition, { 0 } }; + const rdpPointer pointer = { + sizeof(sdlPointer), sdl_Pointer_New, sdl_Pointer_Free, sdl_Pointer_Set, sdl_Pointer_SetNull, + sdl_Pointer_SetDefault, sdl_Pointer_SetPosition, {}, 0, 0, 0, 0, 0, 0, 0, nullptr, nullptr, + {}; graphics_register_pointer(graphics, &pointer); return TRUE; }