[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit 851e04fdde28d78393e34e0d68e1fb4fe9060138
parent 5340b82dce0fb4ed807ca182c713bb70ae67a3fb
Author: Kirill Primak <vyivel@eclair.cafe>
Date:   Tue, 11 Oct 2022 23:21:25 +0300

Fix building with CC=clang

A function declaration without a prototype is deprecated, which is
detected with -Wstrict-prototypes.

Signed-off-by: Kirill Primak <vyivel@eclair.cafe>

Minclude/types.h | 2+-
Msrc/types.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/types.h b/include/types.h @@ -194,7 +194,7 @@ const struct type *type_create_const(enum type_storage storage, const struct type *lower_const(const struct type *old, const struct type *new); void const_refer(const struct type *type, const struct type **ref); -void builtin_types_init(); +void builtin_types_init(void); // Built-in type singletons extern struct type diff --git a/src/types.c b/src/types.c @@ -982,7 +982,7 @@ type_is_castable(const struct type *to, const struct type *from) } void -builtin_types_init() +builtin_types_init(void) { struct type *builtins[] = { &builtin_type_bool, &builtin_type_char, &builtin_type_f32,