mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
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>
This commit is contained in:
committed by
Peter Hutterer
parent
dbc772982e
commit
7e68eb70ca
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user