mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
include/ruby/3: Skip RUBY3_UNREACHABLE_RETURN for icc
I'm unsure why, but it fails on icc.
20200408
T220004Z.log.html.gz
```
In file included from ../../.././include/ruby/3/core.h(32),
from ../../.././include/ruby/ruby.h(28),
from cxxanyargs.cpp(1):
../../.././include/ruby/3/core/rtypeddata.h(163): error: return value type does not match the function type
RUBY3_UNREACHABLE_RETURN(NULL);
```
This commit is contained in:
parent
a4021ecd77
commit
8ab4c55e7a
2 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ RTYPEDDATA_TYPE(VALUE obj)
|
|||
#if ! RUBY_NDEBUG
|
||||
if (RB_UNLIKELY(! RTYPEDDATA_P(obj))) {
|
||||
rb_unexpected_type(obj, RUBY_T_DATA);
|
||||
# if ! defined(__sun)
|
||||
# if ! defined(__sun) && ! RUBY3_COMPILER_IS(Intel)
|
||||
RUBY3_UNREACHABLE_RETURN(NULL);
|
||||
# endif
|
||||
}
|
||||
|
|
|
@ -253,7 +253,7 @@ ruby3_size_mul_or_raise(size_t x, size_t y)
|
|||
}
|
||||
else {
|
||||
ruby_malloc_size_overflow(x, y);
|
||||
# if ! defined(__sun)
|
||||
# if ! defined(__sun) && ! RUBY3_COMPILER_IS(Intel)
|
||||
RUBY3_UNREACHABLE_RETURN(0);
|
||||
# endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue