From 2b00ba23c2f6104aab19b22bb704c0f7b19b30f6 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Tue, 23 Aug 2022 12:56:26 +0800 Subject: [PATCH] st: Fixes warning [-Wimplicit-fallthrough] in st_texture.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Warning message: ../src/mesa/state_tracker/st_texture.c:190:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Signed-off-by: Yonggang Luo Reviewed-by: Marek Olšák Part-of: --- src/mesa/state_tracker/st_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c index be45445d543..65340b11e91 100644 --- a/src/mesa/state_tracker/st_texture.c +++ b/src/mesa/state_tracker/st_texture.c @@ -186,7 +186,7 @@ st_gl_texture_dims_to_pipe_dims(GLenum texture, *layersOut = util_align_npot(depthIn, 6); break; default: - assert(0 && "Unexpected texture in st_gl_texture_dims_to_pipe_dims()"); + unreachable("Unexpected texture in st_gl_texture_dims_to_pipe_dims()"); case GL_TEXTURE_3D: case GL_PROXY_TEXTURE_3D: *widthOut = widthIn;