ruby-changes:45590
From: naruse <ko1@a...>
Date: Mon, 20 Feb 2017 19:59:15 +0900 (JST)
Subject: [ruby-changes:45590] naruse:r57664 (trunk): Supress warning: function might be candidate for attribute 'noreturn'
naruse 2017-02-20 19:59:10 +0900 (Mon, 20 Feb 2017) New Revision: 57664 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57664 Log: Supress warning: function might be candidate for attribute 'noreturn' GCC7 shows it. Modified files: trunk/variable.c Index: variable.c =================================================================== --- variable.c (revision 57663) +++ variable.c (revision 57664) @@ -976,6 +976,7 @@ gen_ivtbl_get(VALUE obj, struct gen_ivtb https://github.com/ruby/ruby/blob/trunk/variable.c#L976 } /* 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) https://github.com/ruby/ruby/blob/trunk/variable.c#L1009 return a.tbl; #else DEPRECATED_INTERNAL_FEATURE("rb_generic_ivar_table()"); - return 0; #endif } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/