shell: Add missing cases to switch statements for animations and fading

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.
dev
Philip Withnall 11 years ago committed by Kristian Høgsberg
parent 0f640e219c
commit 4a86a0a57b
  1. 3
      src/shell.c

@ -3978,6 +3978,8 @@ shell_fade_done(struct weston_view_animation *animation, void *data)
case FADE_OUT: case FADE_OUT:
lock(shell); lock(shell);
break; break;
default:
break;
} }
} }
@ -4379,6 +4381,7 @@ map(struct desktop_shell *shell, struct shell_surface *shsurf,
case ANIMATION_ZOOM: case ANIMATION_ZOOM:
weston_zoom_run(shsurf->view, 0.5, 1.0, NULL, NULL); weston_zoom_run(shsurf->view, 0.5, 1.0, NULL, NULL);
break; break;
case ANIMATION_NONE:
default: default:
break; break;
} }

Loading…
Cancel
Save