mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Disable all warning categories other than RB_WARN_CATEGORY_ALL_BITS
This commit is contained in:
parent
0ca9a4e743
commit
de023b68aa
Notes:
git
2023-04-13 09:08:29 +00:00
2 changed files with 6 additions and 3 deletions
4
error.c
4
error.c
|
@ -148,8 +148,8 @@ rb_syntax_error_append(VALUE exc, VALUE file, int line, int column,
|
|||
}
|
||||
|
||||
static unsigned int warning_disabled_categories = (
|
||||
1U << RB_WARN_CATEGORY_DEPRECATED |
|
||||
0);
|
||||
(1U << RB_WARN_CATEGORY_DEPRECATED) |
|
||||
~RB_WARN_CATEGORY_ALL_BITS);
|
||||
|
||||
static unsigned int
|
||||
rb_warning_category_mask(VALUE category)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue