GNOME Bugzilla – Bug 760350
Cast the return value of g_array_free to void* before casting to char** in gtk_action_muxer_list_actions
Last modified: 2016-01-10 16:25:59 UTC
Casting from char* to char** causes clang to show this warning: cast from 'gchar *' (aka 'char *') to 'gchar **' (aka 'char **') increases required alignment from 1 to 8 Please see the attached patch. We can avoid this warning by casting it to void*.
Created attachment 318568 [details] [review] 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 problem was found when compiling gnome-shell.
Review of attachment 318568 [details] [review]: Sure
Attachment 318568 [details] pushed as 0f120ea - Cast the return value of g_array_free to void* before casting to char**