From 32af6a3ef4c62fabf74945ef67c0eef807298fe9 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 19 May 2014 11:46:17 -0400 Subject: [PATCH] evdev: Fix a compile warning device_type_str is only used inside a CLUTTER_NOTE, which evaluate to nothing when CLUTTER_ENABLE_DEBUG is off. --- clutter/evdev/clutter-device-manager-evdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c index 7d60d8524..30f39f3ab 100644 --- a/clutter/evdev/clutter-device-manager-evdev.c +++ b/clutter/evdev/clutter-device-manager-evdev.c @@ -121,6 +121,7 @@ static ClutterOpenDeviceCallback device_open_callback; static ClutterCloseDeviceCallback device_close_callback; static gpointer device_callback_data; +#ifdef CLUTTER_ENABLE_DEBUG static const char *device_type_str[] = { "pointer", /* CLUTTER_POINTER_DEVICE */ "keyboard", /* CLUTTER_KEYBOARD_DEVICE */ @@ -133,6 +134,7 @@ static const char *device_type_str[] = { "eraser", /* CLUTTER_ERASER_DEVICE */ "cursor", /* CLUTTER_CURSOR_DEVICE */ }; +#endif /* CLUTTER_ENABLE_DEBUG */ /* * ClutterEventSource management