gnome-games r7306 - trunk/libgames-support



Author: chpe
Date: Sun Feb  3 19:59:49 2008
New Revision: 7306
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7306&view=rev

Log:
2008-02-03  Christian Persch  <chpe gnome org>

	* games-sound.c: Fix unused variables and function warnings when sound
	is disabled.

Modified:
   trunk/libgames-support/ChangeLog
   trunk/libgames-support/games-sound.c

Modified: trunk/libgames-support/games-sound.c
==============================================================================
--- trunk/libgames-support/games-sound.c	(original)
+++ trunk/libgames-support/games-sound.c	Sun Feb  3 19:59:49 2008
@@ -33,9 +33,10 @@
 
 #include "games-sound.h"
 
+#if defined(HAVE_GSTREAMER) || defined(HAVE_SDL_MIXER)
 static gboolean sound_enabled = FALSE;
 static gboolean sound_init = FALSE;
-
+#endif /* HAVE_GSTREAMER || HAVE_SDL_MIXER */
 
 #ifdef HAVE_GSTREAMER
 static GstElement *pipeline;
@@ -114,6 +115,8 @@
 }
 #endif /* HAVE_SDL_MIXER */
 
+#if defined(HAVE_GSTREAMER) || defined(HAVE_SDL_MIXER)
+
 /* Initializes the games-sound support */
 static void
 games_sound_init (void)
@@ -154,6 +157,8 @@
 #endif /* HAVE_SDL_MIXER */
 }
 
+#endif /* HAVE_GSTREAMER || HAVE_SDL_MIXER */
+
 /**
  * games_sound_add_option_group:
  * @context: a #GOptionContext



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]