From: Marek Olšák Date: Thu, 27 Feb 2020 00:16:01 +0000 (-0500) Subject: gallium/u_vbuf: silence a warning by using unreachable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2976ae2717a7a4fb1494f4adf92e1972528d24fd;p=mesa.git gallium/u_vbuf: silence a warning by using unreachable Reviewed-by: Eric Anholt Tested-by: Marge Bot Part-of: --- diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c index 7a6e214b29a..f88c92dd6ac 100644 --- a/src/gallium/auxiliary/util/u_vbuf.c +++ b/src/gallium/auxiliary/util/u_vbuf.c @@ -1152,7 +1152,7 @@ u_vbuf_get_minmax_index_mapped(const struct pipe_draw_info *info, break; } default: - assert(0); + unreachable("bad index size"); } }