wasapi: More fixes for Clang warnings.

This commit is contained in:
Ryan C. Gordon
2023-07-22 14:49:55 -04:00
parent 29a0c689c9
commit 7f4488f625

View File

@@ -125,7 +125,7 @@ int WASAPI_ProxyToManagementThread(ManagementThreadTask task, void *userdata, in
// add to end of task list. // add to end of task list.
ManagementThreadPendingTask *prev = NULL; ManagementThreadPendingTask *prev = NULL;
for (ManagementThreadPendingTask *i = SDL_AtomicGetPtr(&ManagementThreadPendingTasks); i != NULL; i = i->next) { for (ManagementThreadPendingTask *i = SDL_AtomicGetPtr((void **) &ManagementThreadPendingTasks); i != NULL; i = i->next) {
prev = i; prev = i;
} }
@@ -658,7 +658,7 @@ static int mgmtthrtask_PrepDevice(void *userdata)
// This is called once a device is activated, possibly asynchronously. // This is called once a device is activated, possibly asynchronously.
int WASAPI_PrepDevice(SDL_AudioDevice *device) int WASAPI_PrepDevice(SDL_AudioDevice *device)
{ {
int rc; int rc = 0;
return (WASAPI_ProxyToManagementThread(mgmtthrtask_PrepDevice, device, &rc) < 0) ? -1 : rc; return (WASAPI_ProxyToManagementThread(mgmtthrtask_PrepDevice, device, &rc) < 0) ? -1 : rc;
} }