Skip to content
Snippets Groups Projects
Commit e046c18a authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Minus a bunch of warnings when enabling alloca()

parent e995c31f
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@
#define ALLOC(var, size, type) type var[size]
#elif defined(USE_ALLOCA)
#define VARDECL(var) var
#define ALLOC(var, size, type) var = alloca(sizeof(type)*(size))
#define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))
#else
/*#define VARDECL(var) var
#define ALLOC(var, size, type) var = PUSH(stack, size, type)*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment