huawei,helpers: fix warnings with -Wimplicit-fallthrough
huawei/mm-modem-helpers-huawei.c: In function ‘parse_mode_combination_string’:
huawei/mm-modem-helpers-huawei.c:991:20: error: this statement may fall through [-Werror=implicit-fallthrough=]
991 | *preferred = MM_MODEM_MODE_NONE;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
huawei/mm-modem-helpers-huawei.c:993:5: note: here
993 | default:
| ^~~~~~~
This commit is contained in:
@@ -989,7 +989,7 @@ parse_mode_combination_string (const gchar *mode_str,
|
||||
case 1:
|
||||
/* If only one mode allowed, NONE preferred */
|
||||
*preferred = MM_MODEM_MODE_NONE;
|
||||
/* fall down */
|
||||
/* fall through */
|
||||
default:
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user