Commit 498d9d0f authored by Jon Turney's avatar Jon Turney
Browse files

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's avatarJon Turney <>
Reviewed-by: Mathias Fröhlich's avatarMathias Fröhlich <>
parent 922cd381
......@@ -25,6 +25,7 @@
* Keith Whitwell <>
#include "c99_alloca.h"
#include "main/mtypes.h"
#include "main/bufferobj.h"
#include "math/m_eval.h"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment