mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-18 03:58:54 +00:00
wasapi: More fixes for Clang warnings.
This commit is contained in:
parent
29a0c689c9
commit
7f4488f625
1 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ int WASAPI_ProxyToManagementThread(ManagementThreadTask task, void *userdata, in
|
|||
|
||||
// add to end of task list.
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
@ -658,7 +658,7 @@ static int mgmtthrtask_PrepDevice(void *userdata)
|
|||
// This is called once a device is activated, possibly asynchronously.
|
||||
int WASAPI_PrepDevice(SDL_AudioDevice *device)
|
||||
{
|
||||
int rc;
|
||||
int rc = 0;
|
||||
return (WASAPI_ProxyToManagementThread(mgmtthrtask_PrepDevice, device, &rc) < 0) ? -1 : rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue