From 57d80d11b1ecc45dc38c1fbf3d92413fa847a513 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 22 Feb 2015 20:25:28 -0800 Subject: mesa/vbo: Use unreachable to silence uninitialized var warning. Reviewed-by: Eric Anholt --- src/mesa/vbo/vbo_exec_array.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index c16fe77ee09..b547e4e1dd9 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -181,8 +181,7 @@ vbo_get_minmax_index(struct gl_context *ctx, break; } default: - assert(0); - break; + unreachable("not reached"); } if (_mesa_is_bufferobj(ib->obj)) { -- cgit v1.2.3