option: fix warnings with -Wimplicit-fallthrough
option/mm-broadband-modem-option.c: In function ‘load_access_technologies_step’:
option/mm-broadband-modem-option.c:565:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
565 | ctx->step++;
| ~~~~~~~~~^~
option/mm-broadband-modem-option.c:567:5: note: here
567 | case ACCESS_TECHNOLOGIES_STEP_OSSYS:
| ^~~~
option/mm-broadband-modem-option.c:587:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
587 | ctx->step++;
| ~~~~~~~~~^~
option/mm-broadband-modem-option.c:589:5: note: here
589 | case ACCESS_TECHNOLOGIES_STEP_OWCTI:
| ^~~~
option/mm-broadband-modem-option.c:600:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
600 | ctx->step++;
| ~~~~~~~~~^~
option/mm-broadband-modem-option.c:602:5: note: here
602 | case ACCESS_TECHNOLOGIES_STEP_LAST:
| ^~~~
This commit is contained in:
@@ -561,8 +561,8 @@ load_access_technologies_step (GTask *task)
|
||||
|
||||
switch (ctx->step) {
|
||||
case ACCESS_TECHNOLOGIES_STEP_FIRST:
|
||||
/* Go on to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case ACCESS_TECHNOLOGIES_STEP_OSSYS:
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
@@ -583,8 +583,8 @@ load_access_technologies_step (GTask *task)
|
||||
task);
|
||||
return;
|
||||
}
|
||||
/* Go on to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case ACCESS_TECHNOLOGIES_STEP_OWCTI:
|
||||
if (ctx->check_3g) {
|
||||
@@ -596,8 +596,8 @@ load_access_technologies_step (GTask *task)
|
||||
task);
|
||||
return;
|
||||
}
|
||||
/* Go on to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case ACCESS_TECHNOLOGIES_STEP_LAST:
|
||||
/* All done, set result and complete */
|
||||
|
||||
Reference in New Issue
Block a user