aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-04-13 16:48:59 +0200
committerJean Boussier <jean.boussier@gmail.com>2023-04-14 09:46:10 +0200
commit6a5c355e4e7deb76363f474041d00465be3b317b (patch)
tree19da01aa929f02799b834a4d2bb90f3c9cbff8cd /error.c
parent07428e7277b1d59dc1b1b237516b5495ac92bcdf (diff)
downloadruby-6a5c355e4e7deb76363f474041d00465be3b317b.tar.gz
Add RB_WARN_CATEGORY_DEFAULT_BITS
Followup: ac123f167a364c3d7a43eca78d564e41f6dbb91e RB_WARN_CATEGORY_ALL_BITS is exposed in a public header, so it makes sense for it to be updated to contain all valid bits. Instead we introduce RB_WARN_CATEGORY_DEFAULT_BITS to list the categories that are enabled by default.
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 61b6592bc0..3d44b6671b 100644
--- a/error.c
+++ b/error.c
@@ -150,7 +150,7 @@ rb_syntax_error_append(VALUE exc, VALUE file, int line, int column,
static unsigned int warning_disabled_categories = (
(1U << RB_WARN_CATEGORY_DEPRECATED) |
- ~RB_WARN_CATEGORY_ALL_BITS);
+ ~RB_WARN_CATEGORY_DEFAULT_BITS);
static unsigned int
rb_warning_category_mask(VALUE category)