diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-02-20 23:03:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-02-20 23:56:07 +0900 |
commit | 835fa98a62ca10f06861dc7bde9cd1a5bc0d1612 (patch) | |
tree | b9900a55ff63b00a8c228007044da97353ffafee /ruby.c | |
parent | bcfcdae58e439eb960ef02cc03f894f34712862d (diff) |
Update warning flags before dump
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1739,6 +1739,8 @@ Init_extra_exts(void) static void ruby_opt_init(ruby_cmdline_options_t *opt) { + rb_warning_category_update(opt->warn.mask, opt->warn.set); + if (opt->dump & dump_exit_bits) return; if (FEATURE_SET_P(opt->features, gems)) { @@ -1754,8 +1756,6 @@ ruby_opt_init(ruby_cmdline_options_t *opt) } } - rb_warning_category_update(opt->warn.mask, opt->warn.set); - /* [Feature #19785] Warning for removed GC environment variable. * Remove this in Ruby 3.4. */ if (getenv("RUBY_GC_HEAP_INIT_SLOTS")) { |