Quiet warning when using older buggy WGI headers

main
Sam Lantinga 2023-07-08 13:28:22 -07:00
parent 7d894dc1c9
commit a29aac603b
2 changed files with 4 additions and 0 deletions

View File

@ -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,

View File

@ -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,