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; Node *next;
int offset, int offset,
length; length;
char body[];
}; };
typedef struct { typedef struct {
Node base; Node base;
ExprKind kind; ExprKind kind;
char body[];
} ExprNode; } ExprNode;
typedef struct { typedef struct {
-5
View File
@@ -99,11 +99,6 @@ static Object *copy(Object *self, Heap *heap, Error *err)
return (Object*) ls2; 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) Object *Object_NewList(int capacity, Heap *heap, Error *error)
{ {
// Handle default args. // Handle default args.