Commit 81a3f717 authored by David Reid's avatar David Reid

Fix unused parameter warnings on macOS.

parent a5ee74ed
...@@ -8388,6 +8388,8 @@ static ma_result ma_semaphore_init__posix(ma_context* pContext, int initialValue ...@@ -8388,6 +8388,8 @@ static ma_result ma_semaphore_init__posix(ma_context* pContext, int initialValue
#if defined(MA_APPLE) #if defined(MA_APPLE)
/* Not yet implemented for Apple platforms since sem_init() is deprecated. Need to use a named semaphore via sem_open() instead. */ /* Not yet implemented for Apple platforms since sem_init() is deprecated. Need to use a named semaphore via sem_open() instead. */
(void)initialValue;
(void)pSemaphore;
return MA_INVALID_OPERATION; return MA_INVALID_OPERATION;
#else #else
if (sem_init(&pSemaphore->posix.semaphore, 0, (unsigned int)initialValue) == 0) { if (sem_init(&pSemaphore->posix.semaphore, 0, (unsigned int)initialValue) == 0) {
...@@ -22751,6 +22753,7 @@ static OSStatus ma_on_output__coreaudio(void* pUserData, AudioUnitRenderActionFl ...@@ -22751,6 +22753,7 @@ static OSStatus ma_on_output__coreaudio(void* pUserData, AudioUnitRenderActionFl
(void)pActionFlags; (void)pActionFlags;
(void)pTimeStamp; (void)pTimeStamp;
(void)busNumber; (void)busNumber;
(void)frameCount;
return noErr; return noErr;
} }
...@@ -23019,7 +23022,10 @@ static OSStatus ma_default_device_changed__coreaudio(AudioObjectID objectID, UIn ...@@ -23019,7 +23022,10 @@ static OSStatus ma_default_device_changed__coreaudio(AudioObjectID objectID, UIn
} }
ma_mutex_unlock(&g_DeviceTrackingMutex_CoreAudio); ma_mutex_unlock(&g_DeviceTrackingMutex_CoreAudio);
(void)objectID; /* Unused. */ /* Unused parameters. */
(void)objectID;
(void)pUserData;
return noErr; return noErr;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment