aboutsummaryrefslogtreecommitdiffstats
path: root/ruby_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_parser.c')
-rw-r--r--ruby_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby_parser.c b/ruby_parser.c
index a76a8231f5..d932b0f7be 100644
--- a/ruby_parser.c
+++ b/ruby_parser.c
@@ -484,7 +484,7 @@ extern VALUE rb_eArgError;
extern VALUE rb_mRubyVMFrozenCore;
VALUE rb_node_case_when_optimizable_literal(const NODE *const node);
-rb_parser_config_t rb_global_parser_config = (rb_parser_config_t) {
+static const rb_parser_config_t rb_global_parser_config = {
.malloc = ruby_xmalloc,
.calloc = ruby_xcalloc,
.realloc = ruby_xrealloc,