[gnome-shell] shell: Add default case to switch statements
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shell: Add default case to switch statements
- Date: Wed, 23 Sep 2015 19:56:24 +0000 (UTC)
commit 3e105747360b66612fd2e2d140da4dae5e842dfd
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Sep 23 19:10:16 2015 +0200
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(+), 0 deletions(-)
---
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index a6ddbf2..9c3e865 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 2fb6cfd..4f1fe10 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 3c68a77..5cf0cbb 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]