diff options
author | Jon Turney <[email protected]> | 2018-04-03 17:52:56 +0100 |
---|---|---|
committer | Jon Turney <[email protected]> | 2018-04-04 14:34:07 +0100 |
commit | 498d9d0f4decb69457857841873e147f1fa6a176 (patch) | |
tree | fe471fd3b921c5916b8b99d5327807f51f20356a | |
parent | 922cd38172b8a2bc286bd082fde9cad4e278765b (diff) |
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]>
-rw-r--r-- | src/mesa/vbo/vbo_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <[email protected]> */ +#include "c99_alloca.h" #include "main/mtypes.h" #include "main/bufferobj.h" #include "math/m_eval.h" |