diff --git a/client/renderers/EGL/egl.c b/client/renderers/EGL/egl.c index 5a9858a0..543acfc3 100644 --- a/client/renderers/EGL/egl.c +++ b/client/renderers/EGL/egl.c @@ -34,6 +34,8 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include #endif +#include + #include "app.h" #include "model.h" #include "shader.h" @@ -288,6 +290,9 @@ static void egl_calc_mouse_size(struct Inst * this) w = this->format.height; h = this->format.width; break; + + default: + assert(!"unreachable"); } switch((this->format.rotate + this->rotate) % LG_ROTATE_MAX) diff --git a/client/src/main.c b/client/src/main.c index 14f783de..73e177df 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -192,6 +192,9 @@ static void updatePositionInfo(void) srcW = g_state.srcSize.y; srcH = g_state.srcSize.x; break; + + default: + assert(!"unreachable"); } if (params.keepAspect) @@ -1242,6 +1245,9 @@ inline static void localCurToGuest(struct DoublePoint *guest) * g_cursor.scale.y; guest->y = (point.x - g_state.dstRect.x) * g_cursor.scale.x; break; + + default: + assert(!"unreachable"); } }