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:
Emmanuele Bassi
2012-01-16 23:49:49 +00:00
parent eb489a40de
commit 1dfc503df1
4 changed files with 26 additions and 24 deletions

View File

@ -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)