[evince/wip/app] toolbar-editor: Fix compiler warning
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/app] toolbar-editor: Fix compiler warning
- Date: Tue, 12 Jun 2012 23:17:33 +0000 (UTC)
commit 529340880306b253d31620d7987ee9a3a300e966
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]