From 5dc5258fdf22d1ba485e8d5063a4bde46765c4d6 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 26 Jan 2018 12:58:33 +1000 Subject: [PATCH] Fix a warning. --- mini_al.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mini_al.h b/mini_al.h index 0c21cf1e..3aa3187b 100644 --- a/mini_al.h +++ b/mini_al.h @@ -8843,6 +8843,8 @@ mal_result mal_device_init__sdl(mal_context* pContext, mal_device_type type, mal mal_assert(pConfig != NULL); mal_assert(pDevice != NULL); + (void)pContext; + // SDL wants the buffer size to be a power of 2. The SDL_AudioSpec property for this is only a Uint16, so we need // to explicitly clamp this because it will be easy to overflow. mal_uint32 bufferSize = pConfig->bufferSizeInFrames;