sierra: fix warnings with -Wimplicit-fallthrough
sierra/mm-broadband-bearer-sierra.c: In function ‘dial_3gpp_context_step’: sierra/mm-broadband-bearer-sierra.c:304:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 304 | ctx->step++; | ~~~~~~~~~^~ sierra/mm-broadband-bearer-sierra.c:306:5: note: here 306 | case DIAL_3GPP_STEP_PS_ATTACH: | ^~~~ sierra/mm-broadband-bearer-sierra.c:398:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 398 | ctx->step++; | ~~~~~~~~~^~
This commit is contained in:
@@ -300,8 +300,8 @@ dial_3gpp_context_step (GTask *task)
|
|||||||
|
|
||||||
switch (ctx->step) {
|
switch (ctx->step) {
|
||||||
case DIAL_3GPP_STEP_FIRST:
|
case DIAL_3GPP_STEP_FIRST:
|
||||||
/* Fall down */
|
|
||||||
ctx->step++;
|
ctx->step++;
|
||||||
|
/* fall through */
|
||||||
|
|
||||||
case DIAL_3GPP_STEP_PS_ATTACH:
|
case DIAL_3GPP_STEP_PS_ATTACH:
|
||||||
mm_base_modem_at_command_full (ctx->modem,
|
mm_base_modem_at_command_full (ctx->modem,
|
||||||
@@ -394,8 +394,8 @@ dial_3gpp_context_step (GTask *task)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fall down */
|
|
||||||
ctx->step++;
|
ctx->step++;
|
||||||
|
/* fall through */
|
||||||
|
|
||||||
case DIAL_3GPP_STEP_CONNECT:
|
case DIAL_3GPP_STEP_CONNECT:
|
||||||
/* We need a net or AT data port */
|
/* We need a net or AT data port */
|
||||||
|
Reference in New Issue
Block a user