diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c
index f966f531a71b7d453ddafd0c1a4539f7896b5d2c..644a667b30a65c98d08efa890b8819fbd4544071 100644
--- a/src/sdl/mixer_sound.c
+++ b/src/sdl/mixer_sound.c
@@ -519,6 +519,10 @@ static void do_fading_callback()
 
 static void count_music_bytes(int chan, void *stream, int len, void *udata)
 {
+	(void)chan;
+	(void)stream;
+	(void)udata;
+
 	if (!music || I_SongType() == MU_GME || I_SongType() == MU_MOD || I_SongType() == MU_MID)
 		return;
 	music_bytes += len;
@@ -538,6 +542,8 @@ static void music_loop(void)
 
 static UINT32 music_fade(UINT32 interval, void *param)
 {
+	(void)param;
+
 	if (!is_fading ||
 		internal_volume == fading_target ||
 		fading_duration == 0)