aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-02-26 19:16:01 -0500
committerMarek Olšák <[email protected]>2020-02-27 22:53:12 -0500
commit2976ae2717a7a4fb1494f4adf92e1972528d24fd (patch)
tree3d6b093b0225f610e26064f51d9a14afeb78294a /src/gallium/auxiliary/util
parentad192385e3348b12d15f466225c2792adf42e7e7 (diff)
gallium/u_vbuf: silence a warning by using unreachable
Reviewed-by: Eric Anholt <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3970> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3970>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf.c2
1 files changed, 1 insertions, 1 deletions
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");
}
}