huawei: fix warnings with -Wimplicit-fallthrough
huawei/mm-broadband-bearer-huawei.c: In function ‘connect_3gpp_context_step’: huawei/mm-broadband-bearer-huawei.c:378:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 378 | ctx->step++; | ~~~~~~~~~^~ huawei/mm-broadband-bearer-huawei.c:382:5: note: here 382 | case CONNECT_3GPP_CONTEXT_STEP_NDISDUP: { | ^~~~ huawei/mm-broadband-bearer-huawei.c: In function ‘disconnect_3gpp_context_step’: huawei/mm-broadband-bearer-huawei.c:708:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 708 | ctx->step++; | ~~~~~~~~~^~ huawei/mm-broadband-bearer-huawei.c:711:5: note: here 711 | case DISCONNECT_3GPP_CONTEXT_STEP_NDISDUP: | ^~~~
This commit is contained in:
@@ -376,8 +376,7 @@ connect_3gpp_context_step (GTask *task)
|
||||
self->priv->connect_pending = task;
|
||||
|
||||
ctx->step++;
|
||||
/* Fall down to the next step */
|
||||
}
|
||||
} /* fall through */
|
||||
|
||||
case CONNECT_3GPP_CONTEXT_STEP_NDISDUP: {
|
||||
const gchar *apn;
|
||||
@@ -706,7 +705,7 @@ disconnect_3gpp_context_step (GTask *task)
|
||||
}
|
||||
|
||||
ctx->step++;
|
||||
/* Fall down to the next step */
|
||||
/* fall through */
|
||||
|
||||
case DISCONNECT_3GPP_CONTEXT_STEP_NDISDUP:
|
||||
mm_base_modem_at_command_full (ctx->modem,
|
||||
|
Reference in New Issue
Block a user