diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-23 13:37:35 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | c1ffe15b9282d80b82c348d408aa2c8b5dc06943 (patch) | |
tree | 2b77b7303237f87c77302493afb04064b3f3b1f3 /src/mm-iface-modem-location.c | |
parent | 8744025545236c4623b04720cf1077293d6d651d (diff) | |
download | ModemManager-c1ffe15b9282d80b82c348d408aa2c8b5dc06943.tar.gz |
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) {
| ^~~~~~
Diffstat (limited to 'src/mm-iface-modem-location.c')
-rw-r--r-- | src/mm-iface-modem-location.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mm-iface-modem-location.c b/src/mm-iface-modem-location.c index 69b092e73..3310b87ed 100644 --- a/src/mm-iface-modem-location.c +++ b/src/mm-iface-modem-location.c @@ -531,6 +531,7 @@ update_location_source_status (MMIfaceModemLocation *self, case MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED: case MM_MODEM_LOCATION_SOURCE_AGPS_MSA: case MM_MODEM_LOCATION_SOURCE_AGPS_MSB: + case MM_MODEM_LOCATION_SOURCE_NONE: /* Nothing to setup in the context */ default: break; |