From bfaacb10bf5725c1ea412b1beb6f8bbcfad86f05 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 16 May 2008 09:47:37 +0000 Subject: [PATCH] * clutter/win32/clutter-event-win32.c (message_translate): Fix signedness of old_xpos and old_ypos to get rid of compiler warnings. * clutter/win32/clutter-backend-win32.c (clutter_backend_win32_get_features): Cast the result of glGetString to a signed char pointer to avoid compiler warnings. --- ChangeLog | 10 ++++++++++ clutter/win32/clutter-backend-win32.c | 2 +- clutter/win32/clutter-event-win32.c | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bd7b04800..ba2ad67a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-05-16 Neil Roberts + + * clutter/win32/clutter-event-win32.c (message_translate): Fix + signedness of old_xpos and old_ypos to get rid of compiler + warnings. + + * clutter/win32/clutter-backend-win32.c + (clutter_backend_win32_get_features): Cast the result of + glGetString to a signed char pointer to avoid compiler warnings. + 2008-05-15 Neil Roberts * clutter/win32/clutter-stage-win32.c: diff --git a/clutter/win32/clutter-backend-win32.c b/clutter/win32/clutter-backend-win32.c index 26de82237..e5c2be3a3 100644 --- a/clutter/win32/clutter-backend-win32.c +++ b/clutter/win32/clutter-backend-win32.c @@ -168,7 +168,7 @@ clutter_backend_win32_get_features (ClutterBackend *backend) /* FIXME: we really need to check if gl context is set */ - extensions = glGetString (GL_EXTENSIONS); + extensions = (const gchar *) glGetString (GL_EXTENSIONS); /* this will make sure that the GL context exists and is bound to a drawable */ diff --git a/clutter/win32/clutter-event-win32.c b/clutter/win32/clutter-event-win32.c index 88b12efbb..4ef7ee93c 100644 --- a/clutter/win32/clutter-event-win32.c +++ b/clutter/win32/clutter-event-win32.c @@ -370,7 +370,7 @@ message_translate (ClutterBackend *backend, { WORD new_xpos = GET_X_LPARAM (msg->lParam); WORD new_ypos = GET_Y_LPARAM (msg->lParam); - guint old_xpos, old_ypos; + gint old_xpos, old_ypos; clutter_actor_get_position (CLUTTER_ACTOR (stage), &old_xpos, &old_ypos);