aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-03-27 18:00:31 +0100
committerLukas Larsson <[email protected]>2019-04-09 14:29:10 +0200
commit851b17abeb675e987c8915b88bb1880f40aaa3f9 (patch)
treef9217b3fb1086a0dadd9f47871a096d3c9c1071e /erts
parent79e6c41f400b7ddd8ca94a9be6aefb2560c7c6fa (diff)
downloadotp-851b17abeb675e987c8915b88bb1880f40aaa3f9.tar.gz
otp-851b17abeb675e987c8915b88bb1880f40aaa3f9.tar.bz2
otp-851b17abeb675e987c8915b88bb1880f40aaa3f9.zip
erts: Fix incorrect gcc may be used init warning
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_proc_sig_queue.c2
1 files changed, 2 insertions, 0 deletions
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)) {