port-serial: fix warnings with -Wswitch-default
mm-port-serial.c: In function ‘port_serial_process_command’:
mm-port-serial.c:594:9: error: switch missing default case [-Werror=switch-default]
594 | switch (write_status) {
| ^~~~~~
mm-port-serial.c: In function ‘parse_response_buffer’:
mm-port-serial.c:925:5: error: switch missing default case [-Werror=switch-default]
925 | switch (MM_PORT_SERIAL_GET_CLASS (self)->parse_response (self,
| ^~~~~~
This commit is contained in:
@@ -622,6 +622,9 @@ port_serial_process_command (MMPortSerial *self,
|
||||
return FALSE;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
}
|
||||
/* Socket based setup */
|
||||
@@ -945,6 +948,8 @@ parse_response_buffer (MMPortSerial *self)
|
||||
case MM_PORT_SERIAL_RESPONSE_NONE:
|
||||
/* Nothing to do this time */
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user