mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-04 21:18:04 +02:00
replace the fallthrough comments with __attribute__((fallthrough))
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f8a2729d7f
commit
ac42578811
3 changed files with 4 additions and 3 deletions
|
|
@ -140,7 +140,7 @@ eis_client_disconnect(struct eis_client *client)
|
|||
eis_device_disconnect(d);
|
||||
}
|
||||
eis_queue_disconnect_event(client);
|
||||
/* fallthrough */
|
||||
_fallthrough_;
|
||||
case EIS_CLIENT_STATE_NEW:
|
||||
client_send_disconnect(client);
|
||||
client->state = EIS_CLIENT_STATE_DISCONNECTED;
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@
|
|||
|
||||
#define _public_ __attribute__((visibility("default")))
|
||||
#define _printf_(_a, _b) __attribute__((format (printf, _a, _b)))
|
||||
#define _fallthrough_ __attribute__((fallthrough))
|
||||
|
||||
#define run_only_once \
|
||||
static int _once_per_##__func__ = 0; \
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ peck_enable_eis_behavior(struct peck *peck, enum peck_eis_behavior behavior)
|
|||
case PECK_EIS_BEHAVIOR_DROP_KEYBOARD:
|
||||
case PECK_EIS_BEHAVIOR_DROP_TOUCH:
|
||||
peck_enable_eis_behavior(peck, PECK_EIS_BEHAVIOR_HANDLE_DEVICE);
|
||||
/* fallthrough */
|
||||
_fallthrough_;
|
||||
case PECK_EIS_BEHAVIOR_REJECT_CLIENT:
|
||||
flag_clear(peck->eis_behavior, behavior - 1);
|
||||
flag_set(peck->eis_behavior, behavior);
|
||||
|
|
@ -138,7 +138,7 @@ peck_enable_eis_behavior(struct peck *peck, enum peck_eis_behavior behavior)
|
|||
case PECK_EIS_BEHAVIOR_ACCEPT_KEYBOARD:
|
||||
case PECK_EIS_BEHAVIOR_ACCEPT_TOUCH:
|
||||
peck_enable_eis_behavior(peck, PECK_EIS_BEHAVIOR_HANDLE_DEVICE);
|
||||
/* fallthrough */
|
||||
_fallthrough_;
|
||||
case PECK_EIS_BEHAVIOR_ACCEPT_CLIENT:
|
||||
flag_clear(peck->eis_behavior, behavior + 1);
|
||||
flag_set(peck->eis_behavior, behavior);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue