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]
This commit is contained in:
Aleksander Morgado
2020-01-31 15:18:35 +01:00
parent d6ec29c49e
commit 3197a52c58
+4
View File
@@ -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;