ruby-changes:45596
From: nobu <ko1@a...>
Date: Tue, 21 Feb 2017 10:28:36 +0900 (JST)
Subject: [ruby-changes:45596] nobu:r57669 (trunk): variable.c: noreturn in GCC
nobu 2017-02-21 10:28:30 +0900 (Tue, 21 Feb 2017) New Revision: 57669 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57669 Log: variable.c: noreturn in GCC * variable.c (rb_generic_ivar_table): declare as noreturn only in GCC, which does not err on different attributes. Modified files: trunk/variable.c Index: variable.c =================================================================== --- variable.c (revision 57668) +++ variable.c (revision 57669) @@ -976,6 +976,9 @@ gen_ivtbl_get(VALUE obj, struct gen_ivtb https://github.com/ruby/ruby/blob/trunk/variable.c#L976 } /* for backwards compatibility only */ +#ifdef __GNUC__ +NORETURN(st_table *rb_generic_ivar_table(VALUE obj)); +#endif st_table* rb_generic_ivar_table(VALUE obj) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/