From 71ee2e900d4c1e9af3f1fabb79de00c678a16c18 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 20 Nov 2019 16:16:29 +0100 Subject: [PATCH] core,broadband-bearer: fix warnings with -Wimplicit-fallthrough MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mm-broadband-bearer.c: In function ‘cid_selection_3gpp_context_step’: mm-broadband-bearer.c:871:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 871 | ctx->step++; | ~~~~~~~~~^~ mm-broadband-bearer.c:873:5: note: here 873 | case CID_SELECTION_3GPP_STEP_FORMAT: | ^~~~ mm-broadband-bearer.c: In function ‘interface_initialization_step’: mm-broadband-bearer.c:2127:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 2127 | ctx->step++; | ~~~~~~~~~^~ mm-broadband-bearer.c:2129:5: note: here 2129 | case INITIALIZATION_STEP_CDMA_RM_PROTOCOL: | ^~~~ mm-broadband-bearer.c:2148:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 2148 | ctx->step++; | ~~~~~~~~~^~ --- src/mm-broadband-bearer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c index 6690c8ac..29c1d2dd 100644 --- a/src/mm-broadband-bearer.c +++ b/src/mm-broadband-bearer.c @@ -867,8 +867,8 @@ cid_selection_3gpp_context_step (GTask *task) switch (ctx->step) { case CID_SELECTION_3GPP_STEP_FIRST: - /* Fall down to next step */ ctx->step++; + /* Fall through */ case CID_SELECTION_3GPP_STEP_FORMAT: cid_selection_3gpp_query_format (task); @@ -2119,8 +2119,8 @@ interface_initialization_step (GTask *task) switch (ctx->step) { case INITIALIZATION_STEP_FIRST: - /* Fall down to next step */ ctx->step++; + /* Fall through */ case INITIALIZATION_STEP_CDMA_RM_PROTOCOL: /* If a specific RM protocol is given, we need to check whether it is @@ -2140,8 +2140,8 @@ interface_initialization_step (GTask *task) return; } - /* Fall down to next step */ ctx->step++; + /* Fall through */ case INITIALIZATION_STEP_LAST: /* We are done without errors! */