mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: enterleave.c: fix implicit fallthrough warnings
Clears 7 -Wimplicit-fallthrough warnings from gcc 14.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1673>
(cherry picked from commit 0cb826e3d0)
This commit is contained in:
@@ -620,14 +620,19 @@ FixDeviceValuator(DeviceIntPtr dev, deviceValuator * ev, ValuatorClassPtr v,
|
||||
switch (ev->num_valuators) {
|
||||
case 6:
|
||||
ev->valuator5 = v->axisVal[first + 5];
|
||||
/* fallthrough */
|
||||
case 5:
|
||||
ev->valuator4 = v->axisVal[first + 4];
|
||||
/* fallthrough */
|
||||
case 4:
|
||||
ev->valuator3 = v->axisVal[first + 3];
|
||||
/* fallthrough */
|
||||
case 3:
|
||||
ev->valuator2 = v->axisVal[first + 2];
|
||||
/* fallthrough */
|
||||
case 2:
|
||||
ev->valuator1 = v->axisVal[first + 1];
|
||||
/* fallthrough */
|
||||
case 1:
|
||||
ev->valuator0 = v->axisVal[first];
|
||||
break;
|
||||
@@ -666,8 +671,10 @@ FixDeviceStateNotify(DeviceIntPtr dev, deviceStateNotify * ev, KeyClassPtr k,
|
||||
switch (ev->num_valuators) {
|
||||
case 3:
|
||||
ev->valuator2 = v->axisVal[first + 2];
|
||||
/* fallthrough */
|
||||
case 2:
|
||||
ev->valuator1 = v->axisVal[first + 1];
|
||||
/* fallthrough */
|
||||
case 1:
|
||||
ev->valuator0 = v->axisVal[first];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user