diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2022-01-12 09:30:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-01-17 09:12:20 +1000 |
commit | dd50f2db86f548624dcfc2a7c9e9428abc28b4cc (patch) | |
tree | 49df19f9ea1e6d261193f3cb5caa7c4d24726a1a | |
parent | ed877d62d292e8198d496be015a024d095f20e7b (diff) | |
download | xf86-input-wacom-dd50f2db86f548624dcfc2a7c9e9428abc28b4cc.tar.gz |
Escape an unused variable with ifdef DEBUG
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/x11/xf86WacomProperties.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x11/xf86WacomProperties.c b/src/x11/xf86WacomProperties.c index d7a42e6..f19380d 100644 --- a/src/x11/xf86WacomProperties.c +++ b/src/x11/xf86WacomProperties.c @@ -447,6 +447,7 @@ static int wcmSetActionProperty(DeviceIntPtr dev, Atom property, rc = wcmCheckActionProperty(priv, property, prop); if (rc != Success) { +#ifdef DEBUG const char *msg = NULL; switch (rc) { case BadMatch: msg = "BadMatch"; break; @@ -454,6 +455,7 @@ static int wcmSetActionProperty(DeviceIntPtr dev, Atom property, default: msg = "UNKNOWN"; break; } DBG(3, priv, "Action validation failed with code %d (%s)\n", rc, msg); +#endif return rc; } |