From c1ffe15b9282d80b82c348d408aa2c8b5dc06943 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 23 Dec 2019 13:37:35 +0100 Subject: iface-modem-location: fix warnings with -Wswitch-enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) { | ^~~~~~ --- src/mm-iface-modem-location.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/mm-iface-modem-location.c b/src/mm-iface-modem-location.c index 69b092e7..3310b87e 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; -- cgit v1.2.3-70-g09d2