aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-11 13:11:51 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-30 11:59:15 +0100
commit9cffa62cf6bf20f52c238c0316dfa112a96257d6 (patch)
treedc6297195b1664ab6adf6a78de8a3cb9ab462178 /src
parent0a47c4bb6ab78fa49aaa6e476cb8d7bc811cd6b0 (diff)
bearer-mbim: fix warnings with -Wimplicit-fallthrough
mm-bearer-mbim.c: In function ‘connect_context_step’: mm-bearer-mbim.c:843:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 843 | ctx->step++; | ~~~~~~~~~^~ mm-bearer-mbim.c:845:5: note: here 845 | case CONNECT_STEP_PACKET_SERVICE: { | ^~~~ mm-bearer-mbim.c: In function ‘disconnect_context_step’: mm-bearer-mbim.c:1269:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 1269 | ctx->step++; | ~~~~~~~~~^~ mm-bearer-mbim.c:1271:5: note: here 1271 | case DISCONNECT_STEP_DISCONNECT: { | ^~~~
Diffstat (limited to 'src')
-rw-r--r--src/mm-bearer-mbim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c
index 54c2c448..392ddde3 100644
--- a/src/mm-bearer-mbim.c
+++ b/src/mm-bearer-mbim.c
@@ -839,8 +839,8 @@ connect_context_step (GTask *task)
switch (ctx->step) {
case CONNECT_STEP_FIRST:
- /* Fall down */
ctx->step++;
+ /* Fall through */
case CONNECT_STEP_PACKET_SERVICE: {
GError *error = NULL;
@@ -1268,8 +1268,8 @@ disconnect_context_step (GTask *task)
switch (ctx->step) {
case DISCONNECT_STEP_FIRST:
- /* Fall down */
ctx->step++;
+ /* Fall through */
case DISCONNECT_STEP_DISCONNECT: {
MbimMessage *message;