Fixed some trivial compiler warnings

* tests/interactive/test-pixmap.c (create_pixmap): Use a format
	string instead of passing the error message directly to g_error.

	* tests/interactive/test-easing.c (test_easing_main)
	(on_button_press):
	* tests/interactive/test-animation.c (on_button_press): Use
	unsigned variables for the results from clutter_actor_get_size
	otherwise it complains about the pointer signedness being
	different.

	* clutter/clutter-script.c (clutter_script_add_search_paths): Use
	G_GSIZE_FORMAT instead of %d for a gsize parameter otherwise it
	gets upset on 64-bit.
This commit is contained in:
Neil Roberts
2008-11-18 18:53:10 +00:00
parent 7324db4a0c
commit eeab42b765
5 changed files with 26 additions and 7 deletions

View File

@ -94,7 +94,7 @@ create_pixmap (guint *width, guint *height, guint *depth)
pixbuf = gdk_pixbuf_new_from_file (IMAGE, &error);
if (error)
g_error (error->message);
g_error ("%s", error->message);
/* We assume that the image had an alpha channel */
g_assert (gdk_pixbuf_get_has_alpha (pixbuf));