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

Author: Marek Olšák <[email protected]>
Date:   Wed Feb 26 19:16:01 2020 -0500

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>

---

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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to