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