aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-12-23 13:23:14 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-30 11:59:14 +0100
commit41bfa1f75d8ac6680034bc709149551efcad8034 (patch)
tree0678d07484b651a37313d888d454fa538d780dea /src
parent82d30fd05255ea24dfb8556f80d5582c5517ba41 (diff)
iface-modem-3gpp-ussd: fix warnings with -Wimplicit-fallthrough
mm-iface-modem-3gpp-ussd.c: In function ‘interface_disabling_step’: mm-iface-modem-3gpp-ussd.c:572:18: error: this statement may fall through [-Werror=implicit-fallthrough=] 572 | ctx->step++; | ~~~~~~~~~^~ ..
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem-3gpp-ussd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mm-iface-modem-3gpp-ussd.c b/src/mm-iface-modem-3gpp-ussd.c
index ba02c126..fd029230 100644
--- a/src/mm-iface-modem-3gpp-ussd.c
+++ b/src/mm-iface-modem-3gpp-ussd.c
@@ -568,8 +568,8 @@ interface_disabling_step (GTask *task)
switch (ctx->step) {
case DISABLING_STEP_FIRST:
- /* Fall down to next step */
ctx->step++;
+ /* fall through */
case DISABLING_STEP_DISABLE_UNSOLICITED_EVENTS:
MM_IFACE_MODEM_3GPP_USSD_GET_INTERFACE (self)->disable_unsolicited_events (
@@ -715,8 +715,8 @@ interface_enabling_step (GTask *task)
switch (ctx->step) {
case ENABLING_STEP_FIRST:
- /* Fall down to next step */
ctx->step++;
+ /* fall through */
case ENABLING_STEP_SETUP_UNSOLICITED_EVENTS:
MM_IFACE_MODEM_3GPP_USSD_GET_INTERFACE (self)->setup_unsolicited_events (
@@ -848,8 +848,8 @@ interface_initialization_step (GTask *task)
supported_quark = (g_quark_from_static_string (
SUPPORTED_TAG));
- /* Fall down to next step */
ctx->step++;
+ /* fall through */
case INITIALIZATION_STEP_CHECK_SUPPORT:
if (!GPOINTER_TO_UINT (g_object_get_qdata (G_OBJECT (self),
@@ -876,8 +876,8 @@ interface_initialization_step (GTask *task)
* support it. */
}
- /* Fall down to next step */
ctx->step++;
+ /* fall through */
case INITIALIZATION_STEP_FAIL_IF_UNSUPPORTED:
if (!GPOINTER_TO_UINT (g_object_get_qdata (G_OBJECT (self),
@@ -890,8 +890,8 @@ interface_initialization_step (GTask *task)
return;
}
- /* Fall down to next step */
ctx->step++;
+ /* fall through */
case INITIALIZATION_STEP_LAST:
/* We are done without errors! */