Module: Mesa Branch: master Commit: 498d9d0f4decb69457857841873e147f1fa6a176 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=498d9d0f4decb69457857841873e147f1fa6a176
Author: Jon Turney <[email protected]> Date: Tue Apr 3 17:52:56 2018 +0100 Fix use of alloca() without #include <c99_alloca.h> Fix use of alloca() without #include <c99_alloca.h> in 1da345e5 vbo/vbo_context.c: In function '_vbo_draw_indirect': vbo/vbo_context.c:284:34: error: implicit declaration of function 'alloca' [-Werror=implicit-function-declaration] struct _mesa_prim *space = alloca(draw_count*sizeof(struct _mesa_prim)); ^~~~~~ vbo/vbo_context.c:284:34: warning: initialization makes pointer from integer without a cast [-Wint-conversion] Signed-off-by: Jon Turney <[email protected]> Reviewed-by: Mathias Fröhlich <[email protected]> --- src/mesa/vbo/vbo_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c index e50cee7a8c..f698fd0f41 100644 --- a/src/mesa/vbo/vbo_context.c +++ b/src/mesa/vbo/vbo_context.c @@ -25,6 +25,7 @@ * Keith Whitwell <[email protected]> */ +#include "c99_alloca.h" #include "main/mtypes.h" #include "main/bufferobj.h" #include "math/m_eval.h" _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
