gallium/u_vbuf: silence a warning by using unreachable
authorMarek Olšák <marek.olsak@amd.com>
Thu, 27 Feb 2020 00:16:01 +0000 (19:16 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 28 Feb 2020 03:53:12 +0000 (22:53 -0500)
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3970>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3970>

src/gallium/auxiliary/util/u_vbuf.c

index 7a6e214b29a6c0ad7c8ffa2d00398ff76337445b..f88c92dd6ac3147267ab95a07534ec8ff7878925 100644 (file)
@@ -1152,7 +1152,7 @@ u_vbuf_get_minmax_index_mapped(const struct pipe_draw_info *info,
       break;
    }
    default:
-      assert(0);
+      unreachable("bad index size");
    }
 }