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:
Aleksander Morgado
2020-01-30 11:59:14 +01:00
parent 3659660e87
commit a4dcf5dd68
+7
View File
@@ -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);
}