summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-01-12 09:11:09 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-01-17 09:12:20 +1000
commit93b7ff5d0f57916ff28d56795f0cca9c21557528 (patch)
treedb3aa51686731313887211c186dbf9f12e1ac62a /src
parentdd50f2db86f548624dcfc2a7c9e9428abc28b4cc (diff)
downloadxf86-input-wacom-93b7ff5d0f57916ff28d56795f0cca9c21557528.tar.gz
Fix a compilation error when DEBUG is undefined
Fixes #214 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/x11/xf86Wacom.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/x11/xf86Wacom.c b/src/x11/xf86Wacom.c
index 15ba64d..ae817b3 100644
--- a/src/x11/xf86Wacom.c
+++ b/src/x11/xf86Wacom.c
@@ -700,9 +700,7 @@ void wcmClose(WacomDevicePtr priv)
static int wcmReady(WacomDevicePtr priv)
{
-#ifdef DEBUG
InputInfoPtr pInfo = priv->frontend;
-#endif
int n = xf86WaitForInput(pInfo->fd, 0);
if (n < 0) {
int saved_errno = errno;
@@ -842,12 +840,10 @@ static int wcmDevSwitchMode(ClientPtr client, DeviceIntPtr dev, int mode)
{
InputInfoPtr pInfo = (InputInfoPtr)dev->public.devicePrivate;
Bool is_absolute = TRUE;
-#ifdef DEBUG
WacomDevicePtr priv = (WacomDevicePtr)pInfo->private;
- DBG(3, priv, "dev=%p mode=%d\n",
- (void *)dev, mode);
-#endif
+ DBG(3, priv, "dev=%p mode=%d\n", (void *)dev, mode);
+
if (mode != Absolute) {
if (mode != Relative)
return XI_BadMode;