From ab3848c8cc1d4843eb136c31d6c3bda9dcab0e16 Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Fri, 15 Apr 2022 16:28:45 +0200 Subject: [PATCH] fixed clang warnings --- src/compiler/ASTi.h | 2 -- src/objects/o_list.c | 5 ----- 2 files changed, 7 deletions(-) diff --git a/src/compiler/ASTi.h b/src/compiler/ASTi.h index b20b073..194ae81 100644 --- a/src/compiler/ASTi.h +++ b/src/compiler/ASTi.h @@ -91,13 +91,11 @@ struct Node { Node *next; int offset, length; - char body[]; }; typedef struct { Node base; ExprKind kind; - char body[]; } ExprNode; typedef struct { diff --git a/src/objects/o_list.c b/src/objects/o_list.c index 21eebdc..7df3e04 100644 --- a/src/objects/o_list.c +++ b/src/objects/o_list.c @@ -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.