port-serial: fix warnings with -Wimplicit-fallthrough

mm-port-serial.c: In function ‘port_serial_process_command’:
  mm-port-serial.c:605:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
    605 |             if (written > 0) {
        |                ^
  mm-port-serial.c:611:9: note: here
    611 |         case G_IO_STATUS_AGAIN:
        |         ^~~~
This commit is contained in:
Aleksander Morgado
2020-01-30 19:09:52 +01:00
parent a812e06b96
commit 8d3d1183b9
+2 -1
View File
@@ -606,7 +606,8 @@ port_serial_process_command (MMPortSerial *self,
ctx->idx += written;
break;
}
/* If written == 0, treat as EAGAIN, so fall down */
/* If written == 0 treat as EAGAIN */
/* Fall through */
case G_IO_STATUS_AGAIN:
/* We're in a non-blocking channel and therefore we're up to receive