diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-11 13:11:51 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:15 +0100 |
commit | 9cffa62cf6bf20f52c238c0316dfa112a96257d6 (patch) | |
tree | dc6297195b1664ab6adf6a78de8a3cb9ab462178 | |
parent | 0a47c4bb6ab78fa49aaa6e476cb8d7bc811cd6b0 (diff) |
bearer-mbim: fix warnings with -Wimplicit-fallthrough
mm-bearer-mbim.c: In function ‘connect_context_step’:
mm-bearer-mbim.c:843:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
843 | ctx->step++;
| ~~~~~~~~~^~
mm-bearer-mbim.c:845:5: note: here
845 | case CONNECT_STEP_PACKET_SERVICE: {
| ^~~~
mm-bearer-mbim.c: In function ‘disconnect_context_step’:
mm-bearer-mbim.c:1269:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
1269 | ctx->step++;
| ~~~~~~~~~^~
mm-bearer-mbim.c:1271:5: note: here
1271 | case DISCONNECT_STEP_DISCONNECT: {
| ^~~~
-rw-r--r-- | src/mm-bearer-mbim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c index 54c2c448..392ddde3 100644 --- a/src/mm-bearer-mbim.c +++ b/src/mm-bearer-mbim.c @@ -839,8 +839,8 @@ connect_context_step (GTask *task) switch (ctx->step) { case CONNECT_STEP_FIRST: - /* Fall down */ ctx->step++; + /* Fall through */ case CONNECT_STEP_PACKET_SERVICE: { GError *error = NULL; @@ -1268,8 +1268,8 @@ disconnect_context_step (GTask *task) switch (ctx->step) { case DISCONNECT_STEP_FIRST: - /* Fall down */ ctx->step++; + /* Fall through */ case DISCONNECT_STEP_DISCONNECT: { MbimMessage *message; |