File 0929-erts-Fix-harmless-initialization-bug.patch of Package erlang

From 9d4999de54c36927feb38a273b8efc95a138d732 Mon Sep 17 00:00:00 2001
From: Rickard Green <rickard@erlang.org>
Date: Fri, 18 Apr 2025 19:02:33 +0200
Subject: [PATCH 1/2] [erts] Fix harmless initialization bug

---
 erts/emulator/beam/erl_proc_sig_queue.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/erts/emulator/beam/erl_proc_sig_queue.c b/erts/emulator/beam/erl_proc_sig_queue.c
index ed10033772..9c35cb77f7 100644
--- a/erts/emulator/beam/erl_proc_sig_queue.c
+++ b/erts/emulator/beam/erl_proc_sig_queue.c
@@ -9021,11 +9021,9 @@ erts_proc_sig_queue_try_enqueue_to_buffer(Eterm from,
         int nonmsg = ERTS_SIG_IS_NON_MSG(first);
         int restarted = 0;
         ErtsSignalInQueueBuffer* buffer;
-        Uint64 nonempty_slots_before;
+        Uint64 nonempty_slots_before = 0;
         Uint32 slot, state;
 
-        ERTS_UNDEF(nonempty_slots_before, 0);
-
         ASSERT(is_value(from));
 
         /* Use the sender id to hash to an outer signal queue buffer. This
-- 
2.43.0

openSUSE Build Service is sponsored by