aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-11-20 16:16:29 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-30 11:59:14 +0100
commit71ee2e900d4c1e9af3f1fabb79de00c678a16c18 (patch)
tree5503c87e10fa0ed2d5c7b164aed21a8869ec876d
parentcdcc44922f0195b5b3933b79232042ea62f8ebb8 (diff)
core,broadband-bearer: fix warnings with -Wimplicit-fallthrough
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++; | ~~~~~~~~~^~
-rw-r--r--src/mm-broadband-bearer.c6
1 files 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! */