win32: Fix a couple of build warnings

* clutter-backend-win32 had an unused variable

* clutter-event-win32 was using the abs function without including
  stdlib.h
This commit is contained in:
Neil Roberts 2010-11-01 15:21:04 +00:00
parent f13f545aa9
commit 02a3670e88
2 changed files with 1 additions and 2 deletions

View File

@ -586,8 +586,6 @@ clutter_backend_win32_class_init (ClutterBackendWin32Class *klass)
static void static void
clutter_backend_win32_init (ClutterBackendWin32 *backend_win32) clutter_backend_win32_init (ClutterBackendWin32 *backend_win32)
{ {
ClutterBackend *backend = CLUTTER_BACKEND (backend_win32);
backend_win32->gl_context = NULL; backend_win32->gl_context = NULL;
backend_win32->invisible_cursor = NULL; backend_win32->invisible_cursor = NULL;

View File

@ -40,6 +40,7 @@
#include <glib.h> #include <glib.h>
#include <windows.h> #include <windows.h>
#include <windowsx.h> #include <windowsx.h>
#include <stdlib.h>
typedef struct _ClutterEventSource ClutterEventSource; typedef struct _ClutterEventSource ClutterEventSource;