diff options
author | Benoit Daloze <[email protected]> | 2021-04-29 15:12:44 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2021-05-04 14:56:55 +0200 |
commit | 0764d323d8908c1682f3ab654c48783438a88a54 (patch) | |
tree | e335e7f8f9c3a4d8a6c14bdce81af07102244ad7 /ext/bigdecimal/missing.h | |
parent | fa7a712d460dc904f8a836bb22b54d457d95ba8e (diff) |
Fix -Wundef warnings for patterns `#if HAVE`
* See [Feature #17752]
* Using this to detect them:
git grep -P 'if\s+HAVE' | grep -Pv 'HAVE_LONG_LONG|/ChangeLog|HAVE_TYPEOF'
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4428
Diffstat (limited to 'ext/bigdecimal/missing.h')
-rw-r--r-- | ext/bigdecimal/missing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/missing.h b/ext/bigdecimal/missing.h index 11b58c099d..7969849158 100644 --- a/ext/bigdecimal/missing.h +++ b/ext/bigdecimal/missing.h @@ -45,7 +45,7 @@ extern "C" { # if __has_builtin(__builtin_unreachable) # define UNREACHABLE __builtin_unreachable() -# elif HAVE___ASSUME +# elif defined(HAVE___ASSUME) # define UNREACHABLE __assume(0) # else |