From 3e105747360b66612fd2e2d140da4dae5e842dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 23 Sep 2015 19:10:16 +0200 Subject: [PATCH] shell: Add default case to switch statements ... to shut up a compiler warning. --- src/shell-app-system.c | 3 +++ src/shell-app.c | 3 +++ src/shell-perf-log.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/shell-app-system.c b/src/shell-app-system.c index a6ddbf28e..9c3e8659a 100644 --- a/src/shell-app-system.c +++ b/src/shell-app-system.c @@ -348,6 +348,9 @@ _shell_app_system_notify_app_state_changed (ShellAppSystem *self, case SHELL_APP_STATE_STOPPED: g_hash_table_remove (self->priv->running_apps, app); break; + default: + g_warn_if_reached(); + break; } g_signal_emit (self, signals[APP_STATE_CHANGED], 0, app); } diff --git a/src/shell-app.c b/src/shell-app.c index 2fb6cfda2..4f1fe10f7 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -491,6 +491,9 @@ shell_app_activate_full (ShellApp *app, case SHELL_APP_STATE_RUNNING: shell_app_activate_window (app, NULL, timestamp); break; + default: + g_assert_not_reached(); + break; } } diff --git a/src/shell-perf-log.c b/src/shell-perf-log.c index 3c68a77d0..5cf0cbb6f 100644 --- a/src/shell-perf-log.c +++ b/src/shell-perf-log.c @@ -672,6 +672,9 @@ shell_perf_log_collect_statistics (ShellPerfLog *perf_log) statistic->recorded = TRUE; } break; + default: + g_warning ("Unsupported signature in event"); + break; } }