diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-09-08 13:27:45 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-10-11 00:18:05 +0000 |
commit | 00d0eba826bbf4b35becbd3fab1ee10e8b3bb89d (patch) | |
tree | df20eed9e2662491a74f738ddf8ecaf9f7906dcc | |
parent | 52813e32f26c16b8210dbf5e4e2be7b8a4406360 (diff) |
dix: FindBestPixel: fix implicit fallthrough warning
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
(cherry picked from commit 9c9e1afeb277030380daa9b22f88b05e1af783a0)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1717>
-rw-r--r-- | dix/colormap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dix/colormap.c b/dix/colormap.c index 7a00d14d6..b5b34d656 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -1250,6 +1250,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; |