From a56fa2fb4aad172be905c3abeefd987804553809 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 11 Oct 2012 10:55:34 +0100 Subject: sna: Rearrange switch to suppress a compiler warning in sna_copy_plane_blt() Hide the impossible default case so that static analyzers are not confused. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 4f204f1b..4d6c7988 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -6381,6 +6381,8 @@ sna_copy_plane_blt(DrawablePtr source, DrawablePtr drawable, GCPtr gc, } while (--bh); break; } + default: + assert(0); case 8: { uint8_t *src = src_pixmap->devPrivate.ptr; @@ -6414,9 +6416,6 @@ sna_copy_plane_blt(DrawablePtr source, DrawablePtr drawable, GCPtr gc, } while (--bh); break; } - default: - assert(0); - return; } b = sna->kgem.batch + sna->kgem.nbatch; -- cgit v1.2.3