harec

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

commit 20e22ea531241c6633a947dd1d42818778259f5c
parent 53f2eb16ec410428a1f9d61fa9fbd18db4f78642
Author: Bor Grošelj Simić <bgs@turminal.net>
Date:   Sat, 25 Jun 2022 04:17:54 +0200

silence a "possibly uninitialized" warning

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>

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

diff --git a/src/check.c b/src/check.c @@ -3207,7 +3207,7 @@ check_function(struct context *ctx, // TODO: Add function name to errors if (decl->func.flags != 0) { - const char *flag; + const char *flag = NULL; switch (decl->func.flags) { case FN_INIT: flag = "@init";