From 498d9d0f4decb69457857841873e147f1fa6a176 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 3 Apr 2018 17:52:56 +0100 Subject: [PATCH] Fix use of alloca() without #include MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix use of alloca() without #include 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 Reviewed-by: Mathias Fröhlich --- 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 e50cee7a8c0..f698fd0f416 100644 --- a/src/mesa/vbo/vbo_context.c +++ b/src/mesa/vbo/vbo_context.c @@ -25,6 +25,7 @@ * Keith Whitwell */ +#include "c99_alloca.h" #include "main/mtypes.h" #include "main/bufferobj.h" #include "math/m_eval.h" -- 2.30.2