From 11eba07b836d369c7c2bee2ca9142ee4134c207e Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 20 Feb 2017 10:59:10 +0000 Subject: Supress warning: function might be candidate for attribute 'noreturn' GCC7 shows it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variable.c b/variable.c index 4d80ce2afd..1eca5eb518 100644 --- a/variable.c +++ b/variable.c @@ -976,6 +976,7 @@ gen_ivtbl_get(VALUE obj, struct gen_ivtbl **ivtbl) } /* for backwards compatibility only */ +NORETURN(st_table *rb_generic_ivar_table(VALUE)); st_table* rb_generic_ivar_table(VALUE obj) { @@ -1008,7 +1009,6 @@ rb_generic_ivar_table(VALUE obj) return a.tbl; #else DEPRECATED_INTERNAL_FEATURE("rb_generic_ivar_table()"); - return 0; #endif } -- cgit v1.2.3