summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-10-11 10:55:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-10-11 10:55:34 +0100
commita56fa2fb4aad172be905c3abeefd987804553809 (patch)
tree0d87d38165907ef9f4c4149f31ea6ea4f9354f10 /src
parent94a98d1c472ce0fc7601421a2bcfbd0524d2bc93 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c5
1 files changed, 2 insertions, 3 deletions
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;