projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f640e2
)
shell: Add missing cases to switch statements for animations and fading
author
Philip Withnall
<philip.withnall@collabora.co.uk>
Mon, 25 Nov 2013 18:01:32 +0000
(18:01 +0000)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 2 Dec 2013 19:44:49 +0000
(11:44 -0800)
This fixes two GCC warnings when compiling with -Wswitch-enum
-Wswitch-default, and makes it clearer that those cases have been
thought about explicitly when writing the code, rather than just being
forgotten.
src/shell.c
patch
|
blob
|
history
diff --git
a/src/shell.c
b/src/shell.c
index
7d71e94
..
2fff62b
100644
(file)
--- a/
src/shell.c
+++ b/
src/shell.c
@@
-3978,6
+3978,8
@@
shell_fade_done(struct weston_view_animation *animation, void *data)
case FADE_OUT:
lock(shell);
break;
+ default:
+ break;
}
}
@@
-4379,6
+4381,7
@@
map(struct desktop_shell *shell, struct shell_surface *shsurf,
case ANIMATION_ZOOM:
weston_zoom_run(shsurf->view, 0.5, 1.0, NULL, NULL);
break;
+ case ANIMATION_NONE:
default:
break;
}