Silence -Werror for other clutter_init callers

This commit is contained in:
Colin Walters 2011-03-13 14:16:54 -04:00
parent c2d400846b
commit bdebaa986b
2 changed files with 4 additions and 2 deletions

View File

@ -77,7 +77,8 @@ main(int argc, char **argv)
clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
clutter_x11_disable_event_retrieval ();
clutter_init (&argc, &argv);
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
g_error ("failed to initialize Clutter");
gdk_window_add_filter (NULL, event_filter, NULL);

View File

@ -31,7 +31,8 @@ int main (int argc, char **argv)
g_thread_init (NULL);
gst_init (&argc, &argv);
clutter_init (&argc, &argv);
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
g_error ("failed to initialize Clutter");
clutter_color_from_string (&red, "red");
clutter_color_from_string (&green, "green");