From 333b3df47d4ce59ab0bcc528e9672ecc81912bb9 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 3 May 2020 02:12:14 +0200 Subject: [PATCH] Add use of variable. --- src/compiler/sema_stmts.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/sema_stmts.c b/src/compiler/sema_stmts.c index 1c4f61afe..c2182a875 100644 --- a/src/compiler/sema_stmts.c +++ b/src/compiler/sema_stmts.c @@ -1171,6 +1171,10 @@ bool sema_analyse_function_body(Context *context, Decl *func) return false; } + if (!error_was_useful) + { + // Warning here? + } func->func.labels = context->labels; context_pop_scope(context); context->current_scope = NULL;