[Mesa-dev] [PATCH] mesa/main: missing return in a non-void function

Francesco Ansanelli francians at gmail.com
Thu Aug 25 12:24:30 UTC 2016


Signed-off-by: Francesco Ansanelli <francians at gmail.com>
---
 src/mesa/main/program_resource.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/main/program_resource.c b/src/mesa/main/program_resource.c
index 6ddbdad..51dbe95 100644
--- a/src/mesa/main/program_resource.c
+++ b/src/mesa/main/program_resource.c
@@ -105,6 +105,7 @@ stage_from_program_interface(GLenum programInterface)
       return MESA_SHADER_COMPUTE;
    default:
       assert(!"unexpected programInterface value");
+      return -1;
    }
 }
 
-- 
1.7.9.5



More information about the mesa-dev mailing list