diff options
author | 卜部昌平 <[email protected]> | 2020-04-09 16:07:29 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-04-10 16:17:30 +0900 |
commit | 3e92785fd6ec4bf584128fcd255b01ff4448ea2b (patch) | |
tree | bf20d6d16d9b0e4b89b1064b2eaa88eef93154b3 /include/ruby/3/core/rstring.h | |
parent | d69c5326856b8e5df35688cd12c15a7cbdf89f1c (diff) |
RUBY3_ASSUME: suppress warnings on icc
icc warns side effects for RUBY3_ASSUME like this:
> ./include/ruby/3/value_type.h(202): warning #2261: __assume expression with side effects discarded
> RUBY3_ASSUME(RB_FLONUM_P(obj));
> ^
Which is a false positive (RB_FLONUM_P has no side effect). It seems
there is no way for us to tell icc that a functin is safe inside of
__assume. Just suppress the warning instead.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3011
Diffstat (limited to 'include/ruby/3/core/rstring.h')
0 files changed, 0 insertions, 0 deletions