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:
|
default:
|
||||||
case 4:
|
case 4:
|
||||||
labels[3] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_VSCROLL);
|
labels[3] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_VSCROLL);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 3:
|
case 3:
|
||||||
labels[2] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_HSCROLL);
|
labels[2] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_HSCROLL);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 2:
|
case 2:
|
||||||
labels[1] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_Y);
|
labels[1] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_Y);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 1:
|
case 1:
|
||||||
labels[0] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_X);
|
labels[0] = XIGetKnownProperty(AXIS_LABEL_PROP_REL_X);
|
||||||
break;
|
break;
|
||||||
@@ -1155,16 +1158,22 @@ InitButtonLabels(Atom *labels, int nlabels)
|
|||||||
default:
|
default:
|
||||||
case 7:
|
case 7:
|
||||||
labels[6] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_HWHEEL_RIGHT);
|
labels[6] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_HWHEEL_RIGHT);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 6:
|
case 6:
|
||||||
labels[5] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_HWHEEL_LEFT);
|
labels[5] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_HWHEEL_LEFT);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 5:
|
case 5:
|
||||||
labels[4] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_DOWN);
|
labels[4] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_DOWN);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 4:
|
case 4:
|
||||||
labels[3] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_UP);
|
labels[3] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_WHEEL_UP);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 3:
|
case 3:
|
||||||
labels[2] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_RIGHT);
|
labels[2] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_RIGHT);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 2:
|
case 2:
|
||||||
labels[1] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_MIDDLE);
|
labels[1] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_MIDDLE);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 1:
|
case 1:
|
||||||
labels[0] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_LEFT);
|
labels[0] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_LEFT);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user