From 9c9e1afeb277030380daa9b22f88b05e1af783a0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 8 Sep 2024 13:27:45 -0700 Subject: [PATCH] dix: FindBestPixel: fix implicit fallthrough warning Signed-off-by: Alan Coopersmith Part-of: --- dix/colormap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dix/colormap.c b/dix/colormap.c index b7ce8da5e..8dbeed4dc 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -1261,6 +1261,7 @@ FindBestPixel(EntryPtr pentFirst, int size, xrgb * prgb, int channel) case PSEUDOMAP: dg = (long) pent->co.local.green - prgb->green; db = (long) pent->co.local.blue - prgb->blue; + /* fallthrough */ case REDMAP: dr = (long) pent->co.local.red - prgb->red; break;