diff options
author | Tobias Klausmann <[email protected]> | 2016-08-25 23:48:31 +0200 |
---|---|---|
committer | Alejandro PiƱeiro <[email protected]> | 2016-08-26 08:46:03 +0200 |
commit | bc5be5323f14c4f790ecaf29991158be1f5435b0 (patch) | |
tree | 80cda288106d6852fb807b59c4dddf7d2847e26c /src/mesa/main/program_resource.c | |
parent | 219a451497d1138c12f927139c6e8aa94a116e53 (diff) |
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/program_resource.c')
-rw-r--r-- | src/mesa/main/program_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |