aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 09:36:06 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commitf6a103ef135aebbec9294d0e7fb5f0a5d6578218 (patch)
treedc1ce166162ed1f50974a4585fc4f3384d0a8f7a
parent7873ef00e93f4bb390f873eddc16fa1afa071b8a (diff)
simtech: fix warnings with -Wswitch-default
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) { | ^~~~~~
-rw-r--r--plugins/simtech/mm-broadband-modem-simtech.c6
1 files changed, 6 insertions, 0 deletions
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 ();
}
}