summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 23:51:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 23:51:17 +0900
commit484c1be8956b7bb7a0253c6d6c7a740c341487fa (patch)
tree716f1a5feee4bd490b43ecf52da09acd08010914 /ruby.c
parent07e595fdbd75ed44473073cdf8cd758572d11709 (diff)
Added `-W:experimental` command line option
[Feature #16420]
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index f6785e4..e0ef3e9 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1078,6 +1078,9 @@ proc_options(long argc, char **argv, ruby_cmdline_options_t *opt, int envopt)
if (NAME_MATCH_P("deprecated", s, len)) {
bits = 1U << RB_WARN_CATEGORY_DEPRECATED;
}
+ else if (NAME_MATCH_P("experimental", s, len)) {
+ bits = 1U << RB_WARN_CATEGORY_EXPERIMENTAL;
+ }
else {
rb_warn("unknown warning category: `%s'", s);
}