iface-modem-simple: fix warnings with -Wswitch-default
mm-iface-modem-simple.c: In function ‘connection_step’:
mm-iface-modem-simple.c:536:5: error: switch missing default case [-Werror=switch-default]
536 | switch (ctx->step) {
| ^~~~~~
This commit is contained in:
@@ -712,6 +712,9 @@ connection_step (ConnectionContext *ctx)
|
||||
mm_base_bearer_get_path (ctx->bearer));
|
||||
connection_context_free (ctx);
|
||||
return;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
g_assert_not_reached ();
|
||||
@@ -823,6 +826,10 @@ connect_auth_ready (MMBaseModem *self,
|
||||
case MM_MODEM_STATE_CONNECTED:
|
||||
ctx->step = CONNECTION_STEP_ENABLE + 1;
|
||||
break;
|
||||
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
connection_step (ctx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user