diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 07:35:15 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 15:18:35 +0100 |
commit | 198529495ae1984958c0f072fa4ed1320b5e4044 (patch) | |
tree | 094c2ada748a03173b63ff19520683c5319dcc93 | |
parent | bbeabb495e1bd2df3d938b850fbce4e61a61d9fa (diff) |
cinterion: fix warnings with -Wswitch-default
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) {
| ^~~~~~
-rw-r--r-- | plugins/cinterion/mm-shared-cinterion.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 (); } } |