aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-11 13:34:59 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-30 19:09:52 +0100
commit8d3d1183b9448ae9f4b87dda66aaf3314563b427 (patch)
treee4f7c5a61f29eb28aa9674df5ce51c65b39ed35c /src
parenta812e06b96061286a1d671cc2ba4715f9091db78 (diff)
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: | ^~~~
Diffstat (limited to 'src')
-rw-r--r--src/mm-port-serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-port-serial.c b/src/mm-port-serial.c
index 3c4db6df..5e8db484 100644
--- a/src/mm-port-serial.c
+++ b/src/mm-port-serial.c
@@ -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