From f560cae145b0c4906ed50d284e3fd2de0dadb518 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 30 Jan 2020 18:35:58 +0100 Subject: [PATCH] novatel: fix warnings with -Wswitch-default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit novatel/mm-broadband-modem-novatel.c: In function ‘cdma_activation_step’: novatel/mm-broadband-modem-novatel.c:1045:5: error: switch missing default case [-Werror=switch-default] 1045 | switch (ctx->step) { | ^~~~~~ --- plugins/novatel/mm-broadband-modem-novatel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/novatel/mm-broadband-modem-novatel.c b/plugins/novatel/mm-broadband-modem-novatel.c index 76da93e6..2675a7e0 100644 --- a/plugins/novatel/mm-broadband-modem-novatel.c +++ b/plugins/novatel/mm-broadband-modem-novatel.c @@ -1101,9 +1101,10 @@ cdma_activation_step (GTask *task) g_task_return_boolean (task, TRUE); g_object_unref (task); return; - } - g_assert_not_reached (); + default: + g_assert_not_reached (); + } } static void