Mesa (master): gallium/u_vbuf: silence a warning by using unreachable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 28 05:07:07 UTC 2020


Module: Mesa
Branch: master
Commit: 2976ae2717a7a4fb1494f4adf92e1972528d24fd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2976ae2717a7a4fb1494f4adf92e1972528d24fd

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Feb 26 19:16:01 2020 -0500

gallium/u_vbuf: silence a warning by using unreachable

Reviewed-by: Eric Anholt <eric at 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
    }
 }
 



More information about the mesa-commit mailing list