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:
@@ -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! */
|
||||
|
||||
Reference in New Issue
Block a user