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
This commit is contained in:
Ting-Wei Lan 2016-01-09 17:24:12 +08:00
parent 2dc8d1f611
commit 0f120ea510

View File

@ -138,7 +138,7 @@ gtk_action_muxer_list_actions (GActionGroup *action_group)
actions); actions);
} }
return (gchar **) g_array_free (actions, FALSE); return (gchar **)(void *) g_array_free (actions, FALSE);
} }
static Group * static Group *