summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-11-28 18:53:10 +0900
committerNobuyoshi Nakada <[email protected]>2024-11-28 18:53:10 +0900
commitb8f248ee5a38b1123a8dac6e8895640e64504ea7 ()
tree86d2421df84ef39481916be919e0d3f747c800ca
parent31a3e877771dabbcd40f481023eaaf541c58af6d (diff)
Initialize `LINK_ANCHOR` totally
Notes: Merged: https://.com/ruby/ruby/pull/12198
-rw-r--r--compile.c4
1 files changed, 1 insertions, 3 deletions
@@ -436,10 +436,8 @@ do { \
#define NO_CHECK(sub) (void)(sub)
#define BEFORE_RETURN
-/* leave name uninitialized so that compiler warn if INIT_ANCHOR is
- * missing */
#define DECL_ANCHOR(name) \
- LINK_ANCHOR name[1] = {{{ISEQ_ELEMENT_ANCHOR,},}}
#define INIT_ANCHOR(name) \
(name->last = &name->anchor)