From bc5be5323f14c4f790ecaf29991158be1f5435b0 Mon Sep 17 00:00:00 2001 From: Tobias Klausmann Date: Thu, 25 Aug 2016 23:48:31 +0200 Subject: [PATCH] mesa/main: Fix missing return in non void function This was found by obs: I: Program returns random data in a function E: Mesa no-return-in-nonvoid-function main/program_resource.c:109 v2: Remove the ! on the string (Ian Romanick) Signed-off-by: Tobias Klausmann Reviewed-by: Ian Romanick --- src/mesa/main/program_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/program_resource.c b/src/mesa/main/program_resource.c index 6ddbdad997f..5726ce10a16 100644 --- a/src/mesa/main/program_resource.c +++ b/src/mesa/main/program_resource.c @@ -104,7 +104,7 @@ stage_from_program_interface(GLenum programInterface) case GL_COMPUTE_SUBROUTINE_UNIFORM: return MESA_SHADER_COMPUTE; default: - assert(!"unexpected programInterface value"); + unreachable("unexpected programInterface value"); } } -- 2.30.2