aboutsummaryrefslogtreecommitdiff
path: root/plugins/ublox
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 09:58:15 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commit3197a52c58038a10cc63846867cb24d5204a59a0 (patch)
tree62b3600cc9d242002af08cf7568366f9ea4f10b8 /plugins/ublox
parentd6ec29c49e313dc9c74efd71d22176329592bcdb (diff)
ublox: fix warnings with -Wswitch-enum
ublox/mm-broadband-modem-ublox.c:1246:5: error: enumeration value ‘MM_CALL_STATE_UNKNOWN’ not handled in switch [-Werror=switch-enum] 1246 | switch (call_info.state) { | ^~~~~~ ublox/mm-broadband-modem-ublox.c:1246:5: error: enumeration value ‘MM_CALL_STATE_ACTIVE’ not handled in switch [-Werror=switch-enum] ublox/mm-broadband-modem-ublox.c:1246:5: error: enumeration value ‘MM_CALL_STATE_HELD’ not handled in switch [-Werror=switch-enum] ublox/mm-broadband-modem-ublox.c:1246:5: error: enumeration value ‘MM_CALL_STATE_TERMINATED’ not handled in switch [-Werror=switch-enum]
Diffstat (limited to 'plugins/ublox')
-rw-r--r--plugins/ublox/mm-broadband-modem-ublox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c
index 3f2d8d1f..32ab7e56 100644
--- a/plugins/ublox/mm-broadband-modem-ublox.c
+++ b/plugins/ublox/mm-broadband-modem-ublox.c
@@ -1252,6 +1252,10 @@ ucallstat_received (MMPortSerialAt *port,
case MM_CALL_STATE_WAITING:
call_info.direction = MM_CALL_DIRECTION_INCOMING;
break;
+ case MM_CALL_STATE_UNKNOWN:
+ case MM_CALL_STATE_ACTIVE:
+ case MM_CALL_STATE_HELD:
+ case MM_CALL_STATE_TERMINATED:
default:
call_info.direction = MM_CALL_DIRECTION_UNKNOWN;
break;