From f6a103ef135aebbec9294d0e7fb5f0a5d6578218 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 31 Jan 2020 09:36:06 +0100 Subject: [PATCH] simtech: fix warnings with -Wswitch-default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit simtech/mm-broadband-modem-simtech.c: In function ‘enable_unsolicited_events_context_step’: simtech/mm-broadband-modem-simtech.c:378:5: error: switch missing default case [-Werror=switch-default] 378 | switch (ctx->step) { | ^~~~~~ simtech/mm-broadband-modem-simtech.c: In function ‘disable_unsolicited_events_context_step’: simtech/mm-broadband-modem-simtech.c:563:5: error: switch missing default case [-Werror=switch-default] 563 | switch (ctx->step) { | ^~~~~~ --- plugins/simtech/mm-broadband-modem-simtech.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/simtech/mm-broadband-modem-simtech.c b/plugins/simtech/mm-broadband-modem-simtech.c index 8a952dca..ad334938 100644 --- a/plugins/simtech/mm-broadband-modem-simtech.c +++ b/plugins/simtech/mm-broadband-modem-simtech.c @@ -445,6 +445,9 @@ enable_unsolicited_events_context_step (GTask *task) g_task_return_boolean (task, TRUE); g_object_unref (task); return; + + default: + g_assert_not_reached (); } } @@ -602,6 +605,9 @@ disable_unsolicited_events_context_step (GTask *task) g_task_return_boolean (task, TRUE); g_object_unref (task); return; + + default: + g_assert_not_reached (); } }