diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-23 13:46:40 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | 451eaa69c5169dc6a736dbf4b512432eab0c50f7 (patch) | |
tree | eb9c3cc580f220e0606692eba7ced053efceba92 /src | |
parent | 189f1a2fb08da1ce54a11be4810619435f9b49ef (diff) |
iface-modem-voice: fix warnings with -Wswitch-enum
mm-iface-modem-voice.c: In function ‘prepare_hold_and_accept_foreach’:
mm-iface-modem-voice.c:804:5: error: enumeration value ‘MM_CALL_STATE_UNKNOWN’ not handled in switch [-Werror=switch-enum]
804 | switch (mm_base_call_get_state (call)) {
| ^~~~~~
...
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-iface-modem-voice.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c index 592afc41..5d42bd62 100644 --- a/src/mm-iface-modem-voice.c +++ b/src/mm-iface-modem-voice.c @@ -813,6 +813,11 @@ prepare_hold_and_accept_foreach (MMBaseCall *call, if (!ctx->next_call) ctx->next_call = g_object_ref (call); break; + case MM_CALL_STATE_UNKNOWN: + case MM_CALL_STATE_DIALING: + case MM_CALL_STATE_RINGING_IN: + case MM_CALL_STATE_RINGING_OUT: + case MM_CALL_STATE_TERMINATED: default: break; } @@ -941,6 +946,11 @@ prepare_hangup_and_accept_foreach (MMBaseCall *call, if (!ctx->next_call) ctx->next_call = g_object_ref (call); break; + case MM_CALL_STATE_UNKNOWN: + case MM_CALL_STATE_DIALING: + case MM_CALL_STATE_RINGING_IN: + case MM_CALL_STATE_RINGING_OUT: + case MM_CALL_STATE_TERMINATED: default: break; } @@ -1082,6 +1092,8 @@ prepare_hangup_all_foreach (MMBaseCall *call, break; case MM_CALL_STATE_WAITING: case MM_CALL_STATE_HELD: + case MM_CALL_STATE_UNKNOWN: + case MM_CALL_STATE_TERMINATED: default: break; } @@ -1199,6 +1211,12 @@ prepare_transfer_foreach (MMBaseCall *call, case MM_CALL_STATE_HELD: ctx->calls = g_list_append (ctx->calls, g_object_ref (call)); break; + case MM_CALL_STATE_UNKNOWN: + case MM_CALL_STATE_DIALING: + case MM_CALL_STATE_WAITING: + case MM_CALL_STATE_RINGING_IN: + case MM_CALL_STATE_RINGING_OUT: + case MM_CALL_STATE_TERMINATED: default: break; } @@ -1471,6 +1489,12 @@ prepare_leave_multiparty_foreach (MMBaseCall *call, case MM_CALL_STATE_HELD: ctx->other_calls = g_list_append (ctx->other_calls, g_object_ref (call)); break; + case MM_CALL_STATE_UNKNOWN: + case MM_CALL_STATE_DIALING: + case MM_CALL_STATE_WAITING: + case MM_CALL_STATE_RINGING_IN: + case MM_CALL_STATE_RINGING_OUT: + case MM_CALL_STATE_TERMINATED: default: break; } @@ -1615,6 +1639,12 @@ prepare_join_multiparty_foreach (MMBaseCall *call, case MM_CALL_STATE_HELD: ctx->all_calls = g_list_append (ctx->all_calls, g_object_ref (call)); break; + case MM_CALL_STATE_UNKNOWN: + case MM_CALL_STATE_DIALING: + case MM_CALL_STATE_RINGING_IN: + case MM_CALL_STATE_RINGING_OUT: + case MM_CALL_STATE_WAITING: + case MM_CALL_STATE_TERMINATED: default: break; } @@ -2130,6 +2160,8 @@ call_list_foreach_count_in_call (MMBaseCall *call, /* NOTE: ringing-in and waiting calls are NOT yet in-call, e.g. there must * be no audio settings enabled and we must not enable in-call URC handling * yet. */ + case MM_CALL_STATE_UNKNOWN: + case MM_CALL_STATE_TERMINATED: default: break; } @@ -2373,6 +2405,9 @@ call_list_foreach_count_establishing (MMBaseCall *call, case MM_CALL_STATE_WAITING: *n_calls_establishing = *n_calls_establishing + 1; break; + case MM_CALL_STATE_ACTIVE: + case MM_CALL_STATE_TERMINATED: + case MM_CALL_STATE_UNKNOWN: default: break; } |