[gnome-media] profile: use volatile to make sure compiler do not optimized away
- From: Marc-Andre Lureau <malureau src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-media] profile: use volatile to make sure compiler do not optimized away
- Date: Tue, 19 Jan 2010 20:14:19 +0000 (UTC)
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]