summaryrefslogtreecommitdiff
path: root/gtk/gtkactionmuxer.c
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2016-01-09 17:24:12 +0800
committerTing-Wei Lan <lantw@src.gnome.org>2016-01-11 00:23:46 +0800
commit0f120ea5101f9f47212b0afd583e9469187b1e0f (patch)
tree7c9dd3944bd5f36bbd9c3988a92bb92e1b4d1cb8 /gtk/gtkactionmuxer.c
parent2dc8d1f611094dfba1d635c43e20967c99a944a3 (diff)
downloadgtk+-0f120ea5101f9f47212b0afd583e9469187b1e0f.tar.gz
Cast the return value of g_array_free to void* before casting to char**
Let the compiler know that we don't want to use it as char*, so there is no alignment error. https://bugzilla.gnome.org/show_bug.cgi?id=760350 https://bugzilla.gnome.org/show_bug.cgi?id=755659
Diffstat (limited to 'gtk/gtkactionmuxer.c')
-rw-r--r--gtk/gtkactionmuxer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c
index 643aeb3190..d8edef0e78 100644
--- a/gtk/gtkactionmuxer.c
+++ b/gtk/gtkactionmuxer.c
@@ -138,7 +138,7 @@ gtk_action_muxer_list_actions (GActionGroup *action_group)
actions);
}
- return (gchar **) g_array_free (actions, FALSE);
+ return (gchar **)(void *) g_array_free (actions, FALSE);
}
static Group *