harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2fc189bbf4caf8173ecd86761ea052b551822d9a
parent 517efa50b7ba95c4fa69da354e30ab4e281ec0e2
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri,  5 Nov 2021 17:59:04 +0100

check: drop non-void result warning

Was added as a temporary measure, is no longer useful.

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

diff --git a/src/check.c b/src/check.c @@ -1356,10 +1356,6 @@ check_expr_compound(struct context *ctx, "A terminating expression may not be followed by additional expressions"); } } - if (lexpr->result != &builtin_type_void && hint && hint != &builtin_type_void) { - fprintf(stderr, "Warning: non-void result ignored at %s:%d\n", - lexpr->loc.path, lexpr->loc.lineno); - } expr->terminates = lexpr->terminates && lexpr->type != EXPR_YIELD; expr->result = type_store_reduce_result(ctx->store, scope->results);