Browse Source

ALSA: Fixed compile warning about unused function.

Found by buildbot.
Philipp Wiesemann 8 years ago
parent
commit
7ad3a46d76
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/audio/alsa/SDL_alsa_audio.c

+ 2 - 0
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. */
     /* !!! FIXME: update this for 7.1 if needed, later. */
 }
 }
 
 
+#ifdef SND_CHMAP_API_VERSION
 /* Some devices have the right channel map, no swizzling necessary */
 /* Some devices have the right channel map, no swizzling necessary */
 static void
 static void
 no_swizzle(_THIS, void *buffer, Uint32 bufferlen)
 no_swizzle(_THIS, void *buffer, Uint32 bufferlen)
 {
 {
     return;
     return;
 }
 }
+#endif /* SND_CHMAP_API_VERSION */
 
 
 
 
 static void
 static void