diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-11 13:39:36 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 14:52:49 +0100 |
commit | 02e5015b5c98ca9903bf3ea296165aea40b9f381 (patch) | |
tree | 4a619e51e10f268c51fbe4951b0232e6c66e25f9 | |
parent | a4b5419287a112801ac223e37d5a3b335d2e5694 (diff) |
port-qmi: fix warnings with -Wimplicit-fallthrough
mm-port-qmi.c:353:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
353 | ctx->step++;
| ~~~~~~~~~^~
mm-port-qmi.c:356:5: note: here
356 | case PORT_OPEN_STEP_CHECK_OPENING:
| ^~~~
mm-port-qmi.c:366:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
366 | ctx->step++;
| ~~~~~~~~~^~
mm-port-qmi.c:369:5: note: here
369 | case PORT_OPEN_STEP_CHECK_ALREADY_OPEN:
| ^~~~
mm-port-qmi.c:376:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
376 | ctx->step++;
| ~~~~~~~~~^~
mm-port-qmi.c:379:5: note: here
379 | case PORT_OPEN_STEP_DEVICE_NEW: {
| ^~~~
mm-port-qmi.c:424:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
424 | ctx->step++;
| ~~~~~~~~~^~
mm-port-qmi.c:427:5: note: here
427 | case PORT_OPEN_STEP_ALLOCATE_WDA_CLIENT:
| ^~~~
mm-port-qmi.c:474:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
474 | ctx->step++;
| ~~~~~~~~~^~
mm-port-qmi.c:477:5: note: here
477 | case PORT_OPEN_STEP_SET_KERNEL_DATA_FORMAT:
| ^~~~
-rw-r--r-- | src/mm-port-qmi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mm-port-qmi.c b/src/mm-port-qmi.c index a0fd131a..efaa3d15 100644 --- a/src/mm-port-qmi.c +++ b/src/mm-port-qmi.c @@ -397,7 +397,7 @@ port_open_step (GTask *task) case PORT_OPEN_STEP_FIRST: mm_dbg ("Opening QMI device..."); ctx->step++; - /* Fall down to next step */ + /* Fall through */ case PORT_OPEN_STEP_CHECK_OPENING: mm_dbg ("Checking if QMI device already opening..."); @@ -410,7 +410,7 @@ port_open_step (GTask *task) return; } ctx->step++; - /* Fall down to next step */ + /* Fall through */ case PORT_OPEN_STEP_CHECK_ALREADY_OPEN: mm_dbg ("Checking if QMI device already open..."); @@ -420,7 +420,7 @@ port_open_step (GTask *task) return; } ctx->step++; - /* Fall down to next step */ + /* Fall through */ case PORT_OPEN_STEP_DEVICE_NEW: { GFile *file; @@ -468,7 +468,7 @@ port_open_step (GTask *task) return; } ctx->step++; - /* Fall down to next step */ + /* Fall through */ case PORT_OPEN_STEP_ALLOCATE_WDA_CLIENT: /* Allocate WDA client */ @@ -518,7 +518,7 @@ port_open_step (GTask *task) } ctx->step++; - /* Fall down to next step */ + /* Fall through */ case PORT_OPEN_STEP_SET_KERNEL_DATA_FORMAT: /* Update the data format to be expected by the kernel */ |