Skip to content

Commit b47a40b

Browse files
author
Satoshi Tagomori
committed
Stop using C23 spec: initialization with an empty struct
1 parent 6cea12a commit b47a40b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

namespace.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ VALUE rb_mNamespaceLoader = 0;
2525

2626
static rb_namespace_t root_namespace_data = {
2727
/* Initialize values lazily in Init_namespace() */
28+
(VALUE)NULL, 0,
29+
(VALUE)NULL, (VALUE)NULL, (VALUE)NULL, (VALUE)NULL, (VALUE)NULL, (VALUE)NULL, (VALUE)NULL, (VALUE)NULL, (VALUE)NULL,
30+
(struct st_table *)NULL, (struct st_table *)NULL, (VALUE)NULL, (VALUE)NULL,
31+
false, false
2832
};
2933

3034
static rb_namespace_t * root_namespace = &root_namespace_data;

0 commit comments

Comments
 (0)