diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3b785fb..39dcc27b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,6 +51,7 @@ jobs: - clang meson_options: - '' + - '-Ddebug-messages=false' # clang requires b_lundef=false for b_santize, see # https://github.com/mesonbuild/meson/issues/764 - '-Db_sanitize=address,undefined -Db_lundef=false' diff --git a/src/x11/xf86Wacom.c b/src/x11/xf86Wacom.c index 15ba64db..ae817b3e 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;