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