diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-08 02:08:47 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-08 02:09:52 -0500 |
| commit | 5a194a3e0dc01d7ba0d9ad81030284ebda13cbd6 (patch) | |
| tree | 61c7419612cafe56f25f37b1718c57f716980048 /src/compile/files.c | |
| parent | 86228917b98a3ef4019e9e18fcafacc948ffcfd1 (diff) | |
Add checks for unused variables
Diffstat (limited to 'src/compile/files.c')
| -rw-r--r-- | src/compile/files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compile/files.c b/src/compile/files.c index 03c08bf6..27c2e041 100644 --- a/src/compile/files.c +++ b/src/compile/files.c @@ -152,7 +152,7 @@ typedef struct { Text_t *code; } compile_info_t; -static void add_type_infos(type_ast_t *type_ast, void *userdata) { +static visit_behavior_t add_type_infos(type_ast_t *type_ast, void *userdata) { if (type_ast && type_ast->tag == EnumTypeAST) { compile_info_t *info = (compile_info_t *)userdata; // Force the type to get defined: @@ -164,6 +164,7 @@ static void add_type_infos(type_ast_t *type_ast, void *userdata) { compile_enum_constructors(info->env, String("enum$", (int64_t)(type_ast->start - type_ast->file->text)), Match(type_ast, EnumTypeAST)->tags)); } + return VISIT_PROCEED; } public |
