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:
Peter Hutterer 2022-02-21 11:49:28 +10:00
parent e885e5e3da
commit 1bcf6c2a61

View file

@ -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