From 0980df79e8a3a03be1b752c74eb228f956180606 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 26 Jun 2021 19:37:09 -0700 Subject: signal: fix warning in older compilers. * signal.c (sig_handler): Some older compilers cannot figure out that stack_lim is not used uninitialized, due to the conditional logic here, in which two separate code blocks are guarded by the same condition. Let's initialize the variable, like the others. --- signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signal.c b/signal.c index ad5c9849..9dac7f44 100644 --- a/signal.c +++ b/signal.c @@ -81,7 +81,7 @@ static void sig_handler(int sig) int exc = is_cpu_exception(sig); int ic = interrupt_count++; int in_interrupt = ic > 0; - val *stack_lim; + val *stack_lim = 0; if (exc) { gc = gc_state(0); -- cgit v1.2.3