core,base-bearer: fix warnings with -Wswitch-default

mm-base-bearer.c: In function ‘modem_3gpp_registration_state_changed’:
  mm-base-bearer.c:463:5: warning: switch missing default case [-Wswitch-default]
    463 |     switch (state) {
        |     ^~~~~~
This commit is contained in:
Aleksander Morgado
2020-01-30 11:59:14 +01:00
parent ce5689112d
commit 2a0e4e062f
+2
View File
@@ -489,6 +489,8 @@ modem_3gpp_registration_state_changed (MMIfaceModem3gpp *modem,
case MM_MODEM_3GPP_REGISTRATION_STATE_EMERGENCY_ONLY:
self->priv->reason_3gpp = CONNECTION_FORBIDDEN_REASON_EMERGENCY_ONLY;
break;
default:
g_assert_not_reached ();
}
/* If no reason to disconnect, or if it's a mixed CDMA+LTE modem without a CDMA reason,