From 0cb826e3d0fd366914c34ab18e5917930f6695b4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 8 Sep 2024 09:57:36 -0700 Subject: [PATCH] dix: enterleave.c: fix implicit fallthrough warnings Clears 7 -Wimplicit-fallthrough warnings from gcc 14.1 Signed-off-by: Alan Coopersmith Part-of: --- dix/enterleave.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dix/enterleave.c b/dix/enterleave.c index cb6209c1d..f12e8e1ed 100644 --- a/dix/enterleave.c +++ b/dix/enterleave.c @@ -624,14 +624,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; @@ -670,8 +675,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;