[Commits] SDL: wasapi: Fixed some compiler warnings.

libsdl.org revision control commits-owner at libsdl.org
Mon Jan 22 06:43:46 PST 2018


details:   https://hg.libsdl.org/SDL/rev/a01e2b1aaaed
changeset: 11832:a01e2b1aaaed
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Mon Jan 22 09:36:40 2018 -0500
description:
wasapi: Fixed some compiler warnings.

diffstat:

 src/audio/wasapi/SDL_wasapi_win32.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r c3446901fc1c -r a01e2b1aaaed src/audio/wasapi/SDL_wasapi_win32.c
--- a/src/audio/wasapi/SDL_wasapi_win32.c	Wed Jan 17 17:24:15 2018 -0800
+++ b/src/audio/wasapi/SDL_wasapi_win32.c	Mon Jan 22 09:36:40 2018 -0500
@@ -188,7 +188,6 @@
 static HRESULT STDMETHODCALLTYPE
 SDLMMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *ithis, LPCWSTR pwstrDeviceId, DWORD dwNewState)
 {
-    SDLMMNotificationClient *this = (SDLMMNotificationClient *) ithis;
     IMMDevice *device = NULL;
 
     if (SUCCEEDED(IMMDeviceEnumerator_GetDevice(enumerator, pwstrDeviceId, &device))) {
@@ -232,7 +231,7 @@
     SDLMMNotificationClient_OnPropertyValueChanged
 };
 
-static SDLMMNotificationClient notification_client = { &notification_client_vtbl, 1 };
+static SDLMMNotificationClient notification_client = { &notification_client_vtbl, { 1 } };
 
 
 int


More information about the commits mailing list