mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
variable.c: noreturn in GCC
* variable.c (rb_generic_ivar_table): declare as noreturn only in GCC, which does not err on different attributes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9291d3d368
commit
a9c1522969
1 changed files with 3 additions and 0 deletions
|
|
@ -976,6 +976,9 @@ gen_ivtbl_get(VALUE obj, struct gen_ivtbl **ivtbl)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* for backwards compatibility only */
|
/* for backwards compatibility only */
|
||||||
|
#ifdef __GNUC__
|
||||||
|
NORETURN(st_table *rb_generic_ivar_table(VALUE obj));
|
||||||
|
#endif
|
||||||
st_table*
|
st_table*
|
||||||
rb_generic_ivar_table(VALUE obj)
|
rb_generic_ivar_table(VALUE obj)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue