mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-22 04:50:39 +02:00
eis: remove a default statement for better compiler warnings
Requires the same handling as 30d154b0d8
now
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
e885e5e3da
commit
1bcf6c2a61
1 changed files with 10 additions and 3 deletions
|
|
@ -43,6 +43,13 @@ log_wire_message(struct eis *eis, const ServerMessage *msg)
|
|||
case SERVER_MESSAGE__MSG_##_name: message = #_name; break;
|
||||
|
||||
switch (msg->msg_case) {
|
||||
#if PROTOBUF_C_VERSION_NUMBER >= 1004000
|
||||
case _SERVER_MESSAGE__MSG__CASE_IS_INT_SIZE:
|
||||
#else
|
||||
case _SERVER_MESSAGE__MSG_IS_INT_SIZE:
|
||||
#endif
|
||||
/* protobuf-internal thing */
|
||||
return;
|
||||
case SERVER_MESSAGE__MSG__NOT_SET:
|
||||
assert(!"SERVER_MESSAGE__MSG__NOT_SET");
|
||||
MSG_STRING_CASE(CONNECTED);
|
||||
|
|
@ -59,10 +66,10 @@ log_wire_message(struct eis *eis, const ServerMessage *msg)
|
|||
MSG_STRING_CASE(KEYBOARD_MODIFIERS);
|
||||
MSG_STRING_CASE(PROPERTY);
|
||||
break;
|
||||
default:
|
||||
assert(!"Unimplemented message type");
|
||||
break;
|
||||
}
|
||||
if (message == NULL)
|
||||
assert(!"Unimplemented message type");
|
||||
|
||||
log_debug(eis, "sending wire message %s\n", message);
|
||||
|
||||
#undef MSG_STRING_CASE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue