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++;
        |         ~~~~~~~~~^~
This commit is contained in:
Aleksander Morgado
2020-01-30 11:59:14 +01:00
parent cdcc44922f
commit 71ee2e900d
+3 -3
View File
@@ -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! */