From: Tobias Klausmann Date: Thu, 25 Aug 2016 21:48:31 +0000 (+0200) Subject: mesa/main: Fix missing return in non void function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc5be5323f14c4f790ecaf29991158be1f5435b0;p=mesa.git 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 --- 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"); } }