summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2017-07-03 15:28:42 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2017-07-03 15:38:04 +0300
commit8888e890ce8d0b1ac22782ab234e8e7a71ac43c8 (patch)
tree1646870ed6bc57eade2855e39c4b9abe861a33c8
parent8a35fdc6947d6702f05066c0e3a2b9f789c77315 (diff)
downloadmetacity-8888e890ce8d0b1ac22782ab234e8e7a71ac43c8.tar.gz
workspace: fix a build warning
-rw-r--r--src/core/workspace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/workspace.c b/src/core/workspace.c
index 051a2a2a..328b8ee2 100644
--- a/src/core/workspace.c
+++ b/src/core/workspace.c
@@ -347,6 +347,7 @@ static void workspace_switch_sound(MetaWorkspace *from,
{
const char *e;
+ e = NULL;
if (x < layout.current_col)
e = "desktop-switch-left";
else if (x > layout.current_col)
@@ -355,6 +356,8 @@ static void workspace_switch_sound(MetaWorkspace *from,
e = "desktop-switch-up";
else if (y > layout.current_row)
e = "desktop-switch-down";
+ else
+ g_assert_not_reached ();
ca_context_play(ca_gtk_context_get(), 1,
CA_PROP_EVENT_ID, e,