From 198529495ae1984958c0f072fa4ed1320b5e4044 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 31 Jan 2020 07:35:15 +0100 Subject: [PATCH] cinterion: fix warnings with -Wswitch-default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cinterion/mm-shared-cinterion.c: In function ‘disable_location_gathering_context_gps_step’: cinterion/mm-shared-cinterion.c:412:5: error: switch missing default case [-Werror=switch-default] 412 | switch (ctx->gps_step) { | ^~~~~~ cinterion/mm-shared-cinterion.c: In function ‘enable_location_gathering_context_gps_step’: cinterion/mm-shared-cinterion.c:665:5: error: switch missing default case [-Werror=switch-default] 665 | switch (ctx->gps_step) { | ^~~~~~ --- plugins/cinterion/mm-shared-cinterion.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/cinterion/mm-shared-cinterion.c b/plugins/cinterion/mm-shared-cinterion.c index d1cc7db4..2089fd1a 100644 --- a/plugins/cinterion/mm-shared-cinterion.c +++ b/plugins/cinterion/mm-shared-cinterion.c @@ -480,6 +480,9 @@ disable_location_gathering_context_gps_step (GTask *task) } g_object_unref (task); return; + + default: + g_assert_not_reached (); } } @@ -735,6 +738,9 @@ enable_location_gathering_context_gps_step (GTask *task) g_task_return_boolean (task, TRUE); g_object_unref (task); return; + + default: + g_assert_not_reached (); } }