build: Fix build with clang -Werror

https://bugzilla.gnome.org/show_bug.cgi?id=755659
This commit is contained in:
Ting-Wei Lan 2015-09-26 18:32:37 +08:00
parent fe986faa2d
commit 1de288c5bb
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,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 *

View File

@ -84,12 +84,12 @@ shell_glsl_quad_add_glsl_snippet (ShellGLSLQuad *quad,
if (is_replace) if (is_replace)
{ {
snippet = cogl_snippet_new (hook, declarations, NULL); snippet = cogl_snippet_new ((CoglSnippetHook)hook, declarations, NULL);
cogl_snippet_set_replace (snippet, code); cogl_snippet_set_replace (snippet, code);
} }
else else
{ {
snippet = cogl_snippet_new (hook, declarations, code); snippet = cogl_snippet_new ((CoglSnippetHook)hook, declarations, code);
} }
if (hook == SHELL_SNIPPET_HOOK_VERTEX || if (hook == SHELL_SNIPPET_HOOK_VERTEX ||