From 7bb6e35c663263c93f7c6d68a0a5a69a9d086637 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: (cherry picked from commit 9c9e1afeb277030380daa9b22f88b05e1af783a0) --- dix/colormap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dix/colormap.c b/dix/colormap.c index b19adc0f1..6ae8b1649 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -1257,6 +1257,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;