fixed clang warnings

This commit is contained in:
Francesco Cozzuto
2022-04-15 16:28:45 +02:00
parent 9f825673c3
commit ab3848c8cc
2 changed files with 0 additions and 7 deletions
-2
View File
@@ -91,13 +91,11 @@ struct Node {
Node *next;
int offset,
length;
char body[];
};
typedef struct {
Node base;
ExprKind kind;
char body[];
} ExprNode;
typedef struct {
-5
View File
@@ -99,11 +99,6 @@ static Object *copy(Object *self, Heap *heap, Error *err)
return (Object*) ls2;
}
static inline int calc_capacity(int mapper_size)
{
return mapper_size * 2.0 / 3.0;
}
Object *Object_NewList(int capacity, Heap *heap, Error *error)
{
// Handle default args.