diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-12 14:39:01 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2024-05-12 23:03:21 +0000 |
commit | 7e68eb70ca5139d5b4c8a07791323866308530a0 (patch) | |
tree | 9a2827592974d20d1542b8423682dc9448db3c7b | |
parent | dbc772982ec15b0132fa41f64221087bb149e78f (diff) |
Clear 9 of 9 -Wimplicit-fallthrough warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/17>
-rw-r--r-- | src/synaptics.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index 3f1bd60..02adc0d 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -1130,10 +1130,13 @@ InitAxesLabels(Atom *labels, int nlabels, const SynapticsPrivate * priv) default: case 4: labels[3] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_VSCROLL); + /* FALLTHROUGH */ case 3: labels[2] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_HSCROLL); + /* FALLTHROUGH */ case 2: labels[1] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_Y); + /* FALLTHROUGH */ case 1: labels[0] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_X); break; @@ -1155,16 +1158,22 @@ InitButtonLabels(Atom *labels, int nlabels) default: case 7: labels[6] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_HWHEEL_RIGHT); + /* FALLTHROUGH */ case 6: labels[5] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_HWHEEL_LEFT); + /* FALLTHROUGH */ case 5: labels[4] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_DOWN); + /* FALLTHROUGH */ case 4: labels[3] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_UP); + /* FALLTHROUGH */ case 3: labels[2] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_RIGHT); + /* FALLTHROUGH */ case 2: labels[1] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_MIDDLE); + /* FALLTHROUGH */ case 1: labels[0] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_LEFT); break; |