mesa/main: Fix missing return in non void function
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Thu, 25 Aug 2016 21:48:31 +0000 (23:48 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 26 Aug 2016 06:46:03 +0000 (08:46 +0200)
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 <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/program_resource.c

index 6ddbdad997f8da58399860ba7048636b651d924f..5726ce10a168280859a311a58a425179cb764e85 100644 (file)
@@ -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");
    }
 }