summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-07-03 13:18:16 +0200
committerraveit65 <[email protected]>2016-07-03 13:18:16 +0200
commit42d3a6d92a15cebb3fccb4444ad665156d1672ca (patch)
tree1b6190217467c75ea4dffc290cae9ade2f91f9df
parentef543e7015b7520a6e758d629fe5c5c338580d86 (diff)
downloadatril-42d3a6d92a15cebb3fccb4444ad665156d1672ca.tar.bz2
atril-42d3a6d92a15cebb3fccb4444ad665156d1672ca.tar.xz
toolbar-editor: Fix compiler warning
Use g_type_ensure() instead of the volatile GType hack. taken from: https://git.gnome.org/browse/evince/commit/?id=bba4526
-rw-r--r--cut-n-paste/toolbar-editor/egg-toolbars-model.c3
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 dab1cad3..279533c1 100644
--- a/cut-n-paste/toolbar-editor/egg-toolbars-model.c
+++ b/cut-n-paste/toolbar-editor/egg-toolbars-model.c
@@ -675,10 +675,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;