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.
diff --git a/src/shell.c b/src/shell.c
index 7d71e94..2fff62b 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -3978,6 +3978,8 @@
case FADE_OUT:
lock(shell);
break;
+ default:
+ break;
}
}
@@ -4379,6 +4381,7 @@
case ANIMATION_ZOOM:
weston_zoom_run(shsurf->view, 0.5, 1.0, NULL, NULL);
break;
+ case ANIMATION_NONE:
default:
break;
}