wasapi: Fixed some compiler warnings.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 22 Jan 2018 09:36:40 -0500
changeset 11832a01e2b1aaaed
parent 11831 c3446901fc1c
child 11833 ef7abee0f838
wasapi: Fixed some compiler warnings.
src/audio/wasapi/SDL_wasapi_win32.c
     1.1 --- a/src/audio/wasapi/SDL_wasapi_win32.c	Wed Jan 17 17:24:15 2018 -0800
     1.2 +++ b/src/audio/wasapi/SDL_wasapi_win32.c	Mon Jan 22 09:36:40 2018 -0500
     1.3 @@ -188,7 +188,6 @@
     1.4  static HRESULT STDMETHODCALLTYPE
     1.5  SDLMMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *ithis, LPCWSTR pwstrDeviceId, DWORD dwNewState)
     1.6  {
     1.7 -    SDLMMNotificationClient *this = (SDLMMNotificationClient *) ithis;
     1.8      IMMDevice *device = NULL;
     1.9  
    1.10      if (SUCCEEDED(IMMDeviceEnumerator_GetDevice(enumerator, pwstrDeviceId, &device))) {
    1.11 @@ -232,7 +231,7 @@
    1.12      SDLMMNotificationClient_OnPropertyValueChanged
    1.13  };
    1.14  
    1.15 -static SDLMMNotificationClient notification_client = { &notification_client_vtbl, 1 };
    1.16 +static SDLMMNotificationClient notification_client = { &notification_client_vtbl, { 1 } };
    1.17  
    1.18  
    1.19  int