diff options
author | Benoit Daloze <[email protected]> | 2021-04-29 14:31:05 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2021-05-04 14:56:55 +0200 |
commit | 68d6bd0873557c12bec6f8e0f8db622f1499d8a7 (patch) | |
tree | dd50dae6ebbf714d19e3db7272f0d9b6af86223e /include/ruby | |
parent | 229cbeba8c928dc6ee5eb21951e00c43a6e5225c (diff) |
Fix trivial -Wundef warnings
* See [Feature #17752]
Co-authored-by: xtkoba (Tee KOBAYASHI) <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4428
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/internal/attr/const.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/attr/const.h b/include/ruby/internal/attr/const.h index b1f27e2606..c9e8577693 100644 --- a/include/ruby/internal/attr/const.h +++ b/include/ruby/internal/attr/const.h @@ -37,7 +37,7 @@ #endif /** Enables #RBIMPL_ATTR_CONST if and only if. ! #RUBY_DEBUG. */ -#if !RUBY_DEBUG +#if !defined(RUBY_DEBUG) || !RUBY_DEBUG # define RBIMPL_ATTR_CONST_UNLESS_DEBUG() RBIMPL_ATTR_CONST() #else # define RBIMPL_ATTR_CONST_UNLESS_DEBUG() /* void */ |