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 /include/ruby/internal/error.h | |
parent | 0ca9a4e743efb180d7d831a6a69fc9af2cf5e61c (diff) | |
download | ruby-de023b68aa32240d08e420f549edcb8df7d8452c.tar.gz |
Disable all warning categories other than `RB_WARN_CATEGORY_ALL_BITS`
Diffstat (limited to 'include/ruby/internal/error.h')
-rw-r--r-- | include/ruby/internal/error.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ruby/internal/error.h b/include/ruby/internal/error.h index 49e2276cb9..b30c231ac1 100644 --- a/include/ruby/internal/error.h +++ b/include/ruby/internal/error.h @@ -50,7 +50,10 @@ typedef enum { /** Warning is for experimental features. */ RB_WARN_CATEGORY_EXPERIMENTAL, - RB_WARN_CATEGORY_ALL_BITS = 0x6 /* no RB_WARN_CATEGORY_NONE bit */ + RB_WARN_CATEGORY_ALL_BITS = ( + (1U << RB_WARN_CATEGORY_DEPRECATED) | + (1U << RB_WARN_CATEGORY_EXPERIMENTAL) | + 0) } rb_warning_category_t; /** for rb_readwrite_sys_fail first argument */ |