diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-23 14:01:42 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | f856ab08fe9d24492459e605af3dcf09ff7b2641 (patch) | |
tree | 9f319269945bb15ab05b4345491feed05c1b487a /src | |
parent | 823d65ee9949a3067bb0ce00b0f72ddfd72a6d39 (diff) |
iface-modem-firmware: fix warnings with -Wimplicit-fallthrough
mm-iface-modem-firmware.c:438:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
438 | ctx->step++;
| ~~~~~~~~~^~
mm-iface-modem-firmware.c:440:5: note: here
440 | case INITIALIZATION_STEP_UPDATE_SETTINGS:
| ^~~~
...
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-iface-modem-firmware.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-iface-modem-firmware.c b/src/mm-iface-modem-firmware.c index 8d68aff2..8344778a 100644 --- a/src/mm-iface-modem-firmware.c +++ b/src/mm-iface-modem-firmware.c @@ -434,8 +434,8 @@ interface_initialization_step (GTask *task) switch (ctx->step) { case INITIALIZATION_STEP_FIRST: - /* Fall down to next step */ ctx->step++; + /* fall through */ case INITIALIZATION_STEP_UPDATE_SETTINGS: if (MM_IFACE_MODEM_FIRMWARE_GET_INTERFACE (self)->load_update_settings && @@ -446,8 +446,8 @@ interface_initialization_step (GTask *task) task); return; } - /* Fall down to next step */ ctx->step++; + /* fall through */ case INITIALIZATION_STEP_LAST: /* We are done without errors! */ |