Fix use of alloca() without #include <c99_alloca.h>
authorJon Turney <jon.turney@dronecode.org.uk>
Tue, 3 Apr 2018 16:52:56 +0000 (17:52 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 4 Apr 2018 13:34:07 +0000 (14:34 +0100)
commit498d9d0f4decb69457857841873e147f1fa6a176
treefe471fd3b921c5916b8b99d5327807f51f20356a
parent922cd38172b8a2bc286bd082fde9cad4e278765b
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 <jon.turney@dronecode.org.uk>
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
src/mesa/vbo/vbo_context.c