Move helper function into #ifdef
authorPhilip Chimento <philip.chimento@gmail.com>
Sun, 23 Feb 2014 20:02:38 +0000 (12:02 -0800)
committerPhilip Chimento <philip.chimento@gmail.com>
Sun, 23 Feb 2014 20:02:38 +0000 (12:02 -0800)
The function only got called if sound support was enabled, so move it
into that particular #ifdef to avoid an unused function warning.

libchimara/schannel.c

index b30e1707096e7a213d132c1097e6ff42969ed046..bc59b5449029b47dd628c43b1d2c65334c10d268 100644 (file)
@@ -763,13 +763,13 @@ glk_schannel_set_volume(schanid_t chan, glui32 vol)
        glk_schannel_set_volume_ext(chan, vol, 0, 0);
 }
 
+#if defined(GSTREAMER_0_10_SOUND) || defined(GSTREAMER_1_0_SOUND)
 static double
 volume_glk_to_gstreamer(glui32 volume_glk)
 {
        return CLAMP(((double)volume_glk / 0x10000), 0.0, 10.0);
 }
 
-#if defined(GSTREAMER_0_10_SOUND) || defined(GSTREAMER_1_0_SOUND)
 static gboolean
 volume_change_timeout(schanid_t chan)
 {