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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user