diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-13 15:43:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-13 18:08:08 +0900 |
commit | de023b68aa32240d08e420f549edcb8df7d8452c (patch) | |
tree | ce000d52fa4dc062a438e65fd274744296a6d8eb /error.c | |
parent | 0ca9a4e743efb180d7d831a6a69fc9af2cf5e61c (diff) | |
download | ruby-de023b68aa32240d08e420f549edcb8df7d8452c.tar.gz |
Disable all warning categories other than `RB_WARN_CATEGORY_ALL_BITS`
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |