mirror of
https://github.com/X11Libre/xf86-input-mouse.git
synced 2026-03-24 01:24:06 +00:00
Make switch fallthrough markers compatible with clang and C23
Uses _X_FALLTHROUGH from xproto 7.0.34 if available,
local fallback if xproto is older than that.
Clears warnings from clang 19.1.7 of the form:
mouse.c:1219:17: warning: unannotated fall-through between switch labels
[-Wimplicit-fallthrough]
1219 | default:
| ^
mouse.c:1219:17: note: insert '[[fallthrough]];' to silence this warning
1219 | default:
| ^
| [[fallthrough]];
mouse.c:1219:17: note: insert 'break;' to avoid fall-through
1219 | default:
| ^
| break;
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse/-/merge_requests/23>
This commit is contained in:
@@ -48,7 +48,7 @@ XORG_WITH_LINT
|
||||
AC_CHECK_FUNCS([asprintf timingsafe_memcmp])
|
||||
|
||||
# Obtain compiler/linker options from server and required extensions
|
||||
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.10] xproto inputproto)
|
||||
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.10 xproto >= 7.0.27 inputproto])
|
||||
|
||||
# Define a configure option for an alternate input module directory
|
||||
AC_ARG_WITH(xorg-module-dir,
|
||||
|
||||
Reference in New Issue
Block a user