From ec257874a7da45826990bd75bb182d5394017dba Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 23 Aug 2021 15:28:06 +0200 Subject: [PATCH] GDISP: Explicitly handle gOrientation values where applicaple This addresses a compiler bug in some versions of GCC which warn about unhandled enum values although there is a default handler. --- src/gdisp/gdisp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index 1ade4ff6..f58ebf7e 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -2885,6 +2885,10 @@ void gdispGBlitArea(GDisplay *g, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoor case gOrientationPortrait: g->p.ptr = g->g.Width >= g->g.Height ? (void *)gOrientation90 : (void *)gOrientation0; break; + case gOrientation0: + case gOrientation90: + case gOrientation180: + case gOrientation270: default: break; }