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:
Aleksander Morgado
2020-01-30 19:09:52 +01:00
parent 6d54691930
commit 0c16898c30
+5
View File
@@ -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 ();
}
}