aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 09:20:58 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commitdb8c1b9c12c36ee27ea26386de74dbb7801168b4 (patch)
treed4f9ad5332a6e8b9639c9b87115a8580a8ceaa37
parentde360bd6204fad85c33d717e6c1ec87b15f18ab1 (diff)
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: | ^~~~
-rw-r--r--plugins/huawei/mm-broadband-bearer-huawei.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/huawei/mm-broadband-bearer-huawei.c b/plugins/huawei/mm-broadband-bearer-huawei.c
index ed175ce2..a15edc60 100644
--- a/plugins/huawei/mm-broadband-bearer-huawei.c
+++ b/plugins/huawei/mm-broadband-bearer-huawei.c
@@ -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,