Fix compiler warnings
When dereferencing GArray.data to a C structure you need a double cast from guint8* to void*, and then from void* to the actual type. This avoids compiler warnings, especially when using clang on OSX.
This commit is contained in:
@ -1631,7 +1631,7 @@ clutter_timeline_list_markers (ClutterTimeline *timeline,
|
||||
&data);
|
||||
|
||||
i = data.markers->len;
|
||||
retval = (gchar **) g_array_free (data.markers, FALSE);
|
||||
retval = (gchar **) (void *) g_array_free (data.markers, FALSE);
|
||||
}
|
||||
|
||||
if (n_markers)
|
||||
|
Reference in New Issue
Block a user