cinterion: fix warnings with -Wimplicit-fallthrough
cinterion/mm-broadband-bearer-cinterion.c: In function ‘dial_3gpp_context_step’: cinterion/mm-broadband-bearer-cinterion.c:393:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 393 | ctx->step++; | ~~~~~~~~~^~ cinterion/mm-broadband-bearer-cinterion.c:396:5: note: here 396 | case DIAL_3GPP_CONTEXT_STEP_AUTH: { | ^~~~ cinterion/mm-broadband-bearer-cinterion.c:419:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 419 | ctx->step++; | ~~~~~~~~~^~ cinterion/mm-broadband-bearer-cinterion.c:422:5: note: here 422 | case DIAL_3GPP_CONTEXT_STEP_START_SWWAN: { | ^~~~ cinterion/mm-broadband-bearer-cinterion.c: In function ‘disconnect_3gpp_context_step’: cinterion/mm-broadband-bearer-cinterion.c:613:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 613 | ctx->step++; | ~~~~~~~~~^~ cinterion/mm-broadband-bearer-cinterion.c:615:5: note: here 615 | case DISCONNECT_3GPP_CONTEXT_STEP_STOP_SWWAN: { | ^~~~
This commit is contained in:
@@ -389,9 +389,8 @@ dial_3gpp_context_step (GTask *task)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
}
|
||||
} /* fall through */
|
||||
|
||||
case DIAL_3GPP_CONTEXT_STEP_AUTH: {
|
||||
gchar *command;
|
||||
@@ -414,10 +413,9 @@ dial_3gpp_context_step (GTask *task)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Fall down to next step */
|
||||
mm_dbg ("cinterion dial step %u/%u: authentication not required", ctx->step, DIAL_3GPP_CONTEXT_STEP_LAST);
|
||||
ctx->step++;
|
||||
}
|
||||
} /* fall through */
|
||||
|
||||
case DIAL_3GPP_CONTEXT_STEP_START_SWWAN: {
|
||||
gchar *command;
|
||||
@@ -612,8 +610,8 @@ disconnect_3gpp_context_step (GTask *task)
|
||||
|
||||
switch (ctx->step) {
|
||||
case DISCONNECT_3GPP_CONTEXT_STEP_FIRST:
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case DISCONNECT_3GPP_CONTEXT_STEP_STOP_SWWAN: {
|
||||
gchar *command;
|
||||
|
Reference in New Issue
Block a user