From 3197a52c58038a10cc63846867cb24d5204a59a0 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 31 Jan 2020 09:58:15 +0100 Subject: ublox: fix warnings with -Wswitch-enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] --- plugins/ublox/mm-broadband-modem-ublox.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/ublox') 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; -- cgit v1.2.3