iface-modem-oma: fix warnings with -Wimplicit-fallthrough
mm-iface-modem-oma.c: In function ‘interface_disabling_step’:
mm-iface-modem-oma.c:732:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
732 | ctx->step++;
| ~~~~~~~~~^~
...
This commit is contained in:
+10
-10
@@ -728,8 +728,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:
|
||||
/* Allow cleaning up unsolicited events */
|
||||
@@ -741,8 +741,8 @@ interface_disabling_step (GTask *task)
|
||||
task);
|
||||
return;
|
||||
}
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case DISABLING_STEP_CLEANUP_UNSOLICITED_EVENTS:
|
||||
/* Allow cleaning up unsolicited events */
|
||||
@@ -754,8 +754,8 @@ interface_disabling_step (GTask *task)
|
||||
task);
|
||||
return;
|
||||
}
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case DISABLING_STEP_LAST:
|
||||
/* We are done without errors! */
|
||||
@@ -917,8 +917,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_LOAD_FEATURES:
|
||||
if (MM_IFACE_MODEM_OMA_GET_INTERFACE (self)->load_features &&
|
||||
@@ -929,8 +929,8 @@ interface_enabling_step (GTask *task)
|
||||
task);
|
||||
return;
|
||||
}
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case ENABLING_STEP_SETUP_UNSOLICITED_EVENTS:
|
||||
/* Allow setting up unsolicited events */
|
||||
@@ -942,8 +942,8 @@ interface_enabling_step (GTask *task)
|
||||
task);
|
||||
return;
|
||||
}
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case ENABLING_STEP_ENABLE_UNSOLICITED_EVENTS:
|
||||
/* Allow setting up unsolicited events */
|
||||
@@ -955,8 +955,8 @@ interface_enabling_step (GTask *task)
|
||||
task);
|
||||
return;
|
||||
}
|
||||
/* Fall down to next step */
|
||||
ctx->step++;
|
||||
/* fall through */
|
||||
|
||||
case ENABLING_STEP_LAST:
|
||||
/* We are done without errors! */
|
||||
@@ -1077,8 +1077,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),
|
||||
@@ -1104,8 +1104,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),
|
||||
@@ -1117,8 +1117,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! */
|
||||
|
||||
Reference in New Issue
Block a user