[evince/wip/app: 19/19] toolbar-editor: Fix compiler warning



commit 581260f98a3d90c4a5e7fb3521a21ab697ff3494
Author: Christian Persch <chpe gnome org>
Date:   Wed Jun 13 00:27:33 2012 +0200

    toolbar-editor: Fix compiler warning
    
    Use g_type_ensure() instead of the volatile GType hack.

 cut-n-paste/toolbar-editor/egg-toolbars-model.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/cut-n-paste/toolbar-editor/egg-toolbars-model.c b/cut-n-paste/toolbar-editor/egg-toolbars-model.c
index ea1d368..0a18ae4 100644
--- a/cut-n-paste/toolbar-editor/egg-toolbars-model.c
+++ b/cut-n-paste/toolbar-editor/egg-toolbars-model.c
@@ -735,10 +735,9 @@ static void
 egg_toolbars_model_class_init (EggToolbarsModelClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
-  volatile GType flags_type; /* work around gcc's optimiser */
 
   /* make sure the flags type is known */
-  flags_type = EGG_TYPE_TB_MODEL_FLAGS;
+  g_type_ensure (EGG_TYPE_TB_MODEL_FLAGS);
 
   object_class->finalize = egg_toolbars_model_finalize;
 



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