harec

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

commit 011593a2cea0915d9244981b137f3516b3b4c78a
parent 987ceb7928c8ec2b3d191963a87c6d9f4a383816
Author: Kirill Primak <vyivel@eclair.cafe>
Date:   Wed, 14 Sep 2022 20:50:44 +0300

check_expr_switch: add missing return statement

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

Diffstat:
Msrc/check.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/check.c b/src/check.c @@ -2669,6 +2669,7 @@ check_expr_switch(struct context *ctx, error(ctx, aexpr->loc, expr, "Cannot switch on %s type", type_storage_unparse(type_dealias(type)->storage)); + return; } struct type_tagged_union result_type = {0};