diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 18:15:38 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 14:52:49 +0100 |
commit | 71afc23261ac210ff5b36165665239864f626368 (patch) | |
tree | aca9aed7604a5b877fc0c9df5b41fd408898438e | |
parent | dcce64a11675105fd979ee46d01daebda08c40e2 (diff) |
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:
| ^~~~~~~
-rw-r--r-- | plugins/huawei/mm-modem-helpers-huawei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/huawei/mm-modem-helpers-huawei.c b/plugins/huawei/mm-modem-helpers-huawei.c index 1715b74c..c7fc124d 100644 --- a/plugins/huawei/mm-modem-helpers-huawei.c +++ b/plugins/huawei/mm-modem-helpers-huawei.c @@ -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; } |