From 71afc23261ac210ff5b36165665239864f626368 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 30 Jan 2020 18:15:38 +0100 Subject: [PATCH] huawei,helpers: fix warnings with -Wimplicit-fallthrough MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: | ^~~~~~~ --- plugins/huawei/mm-modem-helpers-huawei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }