[gnome-media] profile: use volatile to make sure compiler do not optimized away



commit 8bafd16465c99c4d975154cca118dc5767e0804b
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Tue Jan 19 21:14:47 2010 +0100

    profile: use volatile to make sure compiler do not optimized away

 profiles/gnome-media-profiles.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/profiles/gnome-media-profiles.c b/profiles/gnome-media-profiles.c
index b1b682e..69c649b 100644
--- a/profiles/gnome-media-profiles.c
+++ b/profiles/gnome-media-profiles.c
@@ -63,7 +63,7 @@ gnome_media_profiles_init (GConfClient *conf)
   }
 
  /* Register GMAudioProfieEdit widget for GtkBuilder */
-  (void)GM_AUDIO_PROFILE_EDIT(NULL);
+  volatile GType dummy = GM_AUDIO_PROFILE_EDIT(NULL);
   /* initialize the audio profiles part */
   gm_audio_profile_initialize (conf);
 



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