diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-23 14:03:47 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | fee1ff66f76662c31c5c32c414d1889321914806 (patch) | |
tree | b69733a0088c4ad7d86396c71b7a1894025197cf /src/mm-iface-modem-signal.c | |
parent | 8602e97e1c3608d69d9afcff79425a0f8ddbc9fe (diff) |
iface-modem-signal: fix warnings with -Wimplicit-fallthrough
mm-iface-modem-signal.c:447:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
447 | ctx->step++;
| ~~~~~~~~~^~
mm-iface-modem-signal.c:449:5: note: here
449 | case INITIALIZATION_STEP_CHECK_SUPPORT:
| ^~~~
...
Diffstat (limited to 'src/mm-iface-modem-signal.c')
-rw-r--r-- | src/mm-iface-modem-signal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mm-iface-modem-signal.c b/src/mm-iface-modem-signal.c index e3a0bb77..396ce688 100644 --- a/src/mm-iface-modem-signal.c +++ b/src/mm-iface-modem-signal.c @@ -443,8 +443,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), @@ -470,8 +470,8 @@ interface_initialization_step (GTask *task) /* If there is no implementation to check support, assume we DON'T * 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), @@ -483,8 +483,8 @@ interface_initialization_step (GTask *task) g_object_unref (task); return; } - /* Fall down to next step */ ctx->step++; + /* fall through */ case INITIALIZATION_STEP_LAST: /* We are done without errors! */ |