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:
        |     ^~~~
  ...
This commit is contained in:
Aleksander Morgado
2020-01-30 11:59:14 +01:00
parent 823d65ee99
commit f856ab08fe
+2 -2
View File
@@ -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! */