From 7ad3a46d76a19e41172eecbf264707bdbf7c0db4 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 5 Nov 2016 21:23:17 +0100 Subject: [PATCH] ALSA: Fixed compile warning about unused function. Found by buildbot. --- src/audio/alsa/SDL_alsa_audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c index 05c8862a7204c..149572ed2e60b 100644 --- a/src/audio/alsa/SDL_alsa_audio.c +++ b/src/audio/alsa/SDL_alsa_audio.c @@ -310,12 +310,14 @@ swizzle_alsa_channels(_THIS, void *buffer, Uint32 bufferlen) /* !!! FIXME: update this for 7.1 if needed, later. */ } +#ifdef SND_CHMAP_API_VERSION /* Some devices have the right channel map, no swizzling necessary */ static void no_swizzle(_THIS, void *buffer, Uint32 bufferlen) { return; } +#endif /* SND_CHMAP_API_VERSION */ static void