summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-21 01:28:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-21 01:28:30 +0000
commita9c1522969f80b441cab4309a5600c96e11247be (patch)
tree214f086afff05ed0d218e315c790343ad2279d8c /variable.c
parent9291d3d36818febcbeea11b3c4b262c88533abcf (diff)
downloadruby-a9c1522969f80b441cab4309a5600c96e11247be.tar.gz
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
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index ac6ca489d5..b416720127 100644
--- a/variable.c
+++ b/variable.c
@@ -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)
{