summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2016-03-05 19:43:32 +0100
committerPaolo Borelli <pborelli@gnome.org>2016-03-05 20:31:10 +0100
commit58a49c1a4bfaf36dc52dc8ff4ad1c91c85277967 (patch)
tree27e8f4b419bd597a0a794f636db715848ea9f550
parent6066519e73085ea587870e30c83cc3e962ea5a45 (diff)
downloadgtk+-58a49c1a4bfaf36dc52dc8ff4ad1c91c85277967.tar.gz
win32: fix "unused variable" warning
-rw-r--r--gdk/win32/gdkdevice-virtual.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdk/win32/gdkdevice-virtual.c b/gdk/win32/gdkdevice-virtual.c
index 64bf29c5f2..452bd39a47 100644
--- a/gdk/win32/gdkdevice-virtual.c
+++ b/gdk/win32/gdkdevice-virtual.c
@@ -92,13 +92,8 @@ gdk_device_virtual_set_window_cursor (GdkDevice *device,
GdkWindow *window,
GdkCursor *cursor)
{
- GdkWindow *parent_window;
- GdkWindowImplWin32 *impl;
- GdkCursor *previous_cursor;
-
- impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
-
- previous_cursor = impl->cursor;
+ GdkWindowImplWin32 *impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
+ GdkCursor *previous_cursor = impl->cursor;
if (cursor != NULL && GDK_WIN32_CURSOR (cursor)->hcursor != NULL)
{