~sircmpwn/hare-dev

check_expr_switch: add missing return statement v1 APPLIED

Kirill Primak: 1
 check_expr_switch: add missing return statement

 1 files changed, 1 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/35313/mbox | git am -3
Learn more about email & git

[PATCH] check_expr_switch: add missing return statement Export this patch

Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
---
 src/check.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/check.c b/src/check.c
index a7777e0..877f5ed 100644
--- 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};
-- 
2.37.3
Thanks!

To git@git.sr.ht:~sircmpwn/harec
   011593a..987ceb7  master -> master