From a29aac603bc09f9e84faceb025f7bc1b4b366ac3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 8 Jul 2023 13:28:22 -0700 Subject: [PATCH] Quiet warning when using older buggy WGI headers --- src/joystick/windows/SDL_rawinputjoystick.c | 2 ++ src/joystick/windows/SDL_windows_gaming_input.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/joystick/windows/SDL_rawinputjoystick.c b/src/joystick/windows/SDL_rawinputjoystick.c index 08d2444c77..3c296b93ac 100644 --- a/src/joystick/windows/SDL_rawinputjoystick.c +++ b/src/joystick/windows/SDL_rawinputjoystick.c @@ -499,6 +499,8 @@ static HRESULT STDMETHODCALLTYPE IEventHandler_CGamepadVtbl_InvokeRemoved(__FIEv return S_OK; } +#pragma warning(disable : 4028) /* formal parameter 3 different from declaration, when using older buggy WGI headers */ + static __FIEventHandler_1_Windows__CGaming__CInput__CGamepadVtbl gamepad_added_vtbl = { IEventHandler_CGamepadVtbl_QueryInterface, IEventHandler_CGamepadVtbl_AddRef, diff --git a/src/joystick/windows/SDL_windows_gaming_input.c b/src/joystick/windows/SDL_windows_gaming_input.c index 83d625240f..210395a7b0 100644 --- a/src/joystick/windows/SDL_windows_gaming_input.c +++ b/src/joystick/windows/SDL_windows_gaming_input.c @@ -567,6 +567,8 @@ static HRESULT STDMETHODCALLTYPE IEventHandler_CRawGameControllerVtbl_InvokeRemo return S_OK; } +#pragma warning(disable : 4028) /* formal parameter 3 different from declaration, when using older buggy WGI headers */ + static __FIEventHandler_1_Windows__CGaming__CInput__CRawGameControllerVtbl controller_added_vtbl = { IEventHandler_CRawGameControllerVtbl_QueryInterface, IEventHandler_CRawGameControllerVtbl_AddRef,