From 851b17abeb675e987c8915b88bb1880f40aaa3f9 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Wed, 27 Mar 2019 18:00:31 +0100 Subject: erts: Fix incorrect gcc may be used init warning --- erts/emulator/beam/erl_proc_sig_queue.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'erts/emulator') diff --git a/erts/emulator/beam/erl_proc_sig_queue.c b/erts/emulator/beam/erl_proc_sig_queue.c index 4e9f177e51..f58a606d57 100644 --- a/erts/emulator/beam/erl_proc_sig_queue.c +++ b/erts/emulator/beam/erl_proc_sig_queue.c @@ -1019,6 +1019,8 @@ send_gen_exit_signal(Process *c_p, Eterm from_tag, ref_sz = size_object(ref); hsz += ref_sz; + reason_sz = 0; /* Set to silence gcc warning */ + /* The reason was part of the control message, just use copy it into the xsigd */ if (is_value(reason)) { -- cgit v1.2.3