[clutter/clutter-1.20] evdev: Fix a compile warning
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.20] evdev: Fix a compile warning
- Date: Tue, 20 May 2014 11:55:29 +0000 (UTC)
commit 32af6a3ef4c62fabf74945ef67c0eef807298fe9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon May 19 11:46:17 2014 -0400
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c
index 7d60d85..30f39f3 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]