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.
This commit is contained in:
parent
d708c30765
commit
32af6a3ef4
@ -121,6 +121,7 @@ static ClutterOpenDeviceCallback device_open_callback;
|
|||||||
static ClutterCloseDeviceCallback device_close_callback;
|
static ClutterCloseDeviceCallback device_close_callback;
|
||||||
static gpointer device_callback_data;
|
static gpointer device_callback_data;
|
||||||
|
|
||||||
|
#ifdef CLUTTER_ENABLE_DEBUG
|
||||||
static const char *device_type_str[] = {
|
static const char *device_type_str[] = {
|
||||||
"pointer", /* CLUTTER_POINTER_DEVICE */
|
"pointer", /* CLUTTER_POINTER_DEVICE */
|
||||||
"keyboard", /* CLUTTER_KEYBOARD_DEVICE */
|
"keyboard", /* CLUTTER_KEYBOARD_DEVICE */
|
||||||
@ -133,6 +134,7 @@ static const char *device_type_str[] = {
|
|||||||
"eraser", /* CLUTTER_ERASER_DEVICE */
|
"eraser", /* CLUTTER_ERASER_DEVICE */
|
||||||
"cursor", /* CLUTTER_CURSOR_DEVICE */
|
"cursor", /* CLUTTER_CURSOR_DEVICE */
|
||||||
};
|
};
|
||||||
|
#endif /* CLUTTER_ENABLE_DEBUG */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ClutterEventSource management
|
* ClutterEventSource management
|
||||||
|
Loading…
Reference in New Issue
Block a user