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:
nobu 2017-02-21 01:28:30 +00:00
parent 9291d3d368
commit a9c1522969

View File

@ -976,6 +976,9 @@ gen_ivtbl_get(VALUE obj, struct gen_ivtbl **ivtbl)
}
/* for backwards compatibility only */
#ifdef __GNUC__
NORETURN(st_table *rb_generic_ivar_table(VALUE obj));
#endif
st_table*
rb_generic_ivar_table(VALUE obj)
{