From 9cffa62cf6bf20f52c238c0316dfa112a96257d6 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sat, 11 Jan 2020 13:11:51 +0100 Subject: bearer-mbim: fix warnings with -Wimplicit-fallthrough MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: { | ^~~~ --- src/mm-bearer-mbim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2