iface-modem-location: fix warnings with -Wswitch-enum

mm-iface-modem-location.c: In function ‘update_location_source_status’:
  mm-iface-modem-location.c:482:5: error: enumeration value ‘MM_MODEM_LOCATION_SOURCE_NONE’ not handled in switch [-Werror=switch-enum]
    482 |     switch (source) {
        |     ^~~~~~
This commit is contained in:
Aleksander Morgado
2019-12-23 13:37:35 +01:00
parent 8744025545
commit c1ffe15b92

View File

@@ -531,6 +531,7 @@ update_location_source_status (MMIfaceModemLocation *self,
case MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED: case MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED:
case MM_MODEM_LOCATION_SOURCE_AGPS_MSA: case MM_MODEM_LOCATION_SOURCE_AGPS_MSA:
case MM_MODEM_LOCATION_SOURCE_AGPS_MSB: case MM_MODEM_LOCATION_SOURCE_AGPS_MSB:
case MM_MODEM_LOCATION_SOURCE_NONE:
/* Nothing to setup in the context */ /* Nothing to setup in the context */
default: default:
break; break;