ruby-changes:42949
From: nobu <ko1@a...>
Date: Tue, 17 May 2016 11:58:44 +0900 (JST)
Subject: [ruby-changes:42949] nobu:r55023 (trunk): configure.in: declare as NORETURN
nobu 2016-05-17 11:58:40 +0900 (Tue, 17 May 2016) New Revision: 55023 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55023 Log: configure.in: declare as NORETURN * configure.in (RUBY_CHECK_BUILTIN_SETJMP): declare t as NORETURN to suppress warnings by -Wsuggest-attribute=noreturn. [ruby-core:75510] [Bug #12383] Modified files: trunk/ChangeLog trunk/configure.in Index: ChangeLog =================================================================== --- ChangeLog (revision 55022) +++ ChangeLog (revision 55023) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue May 17 11:58:58 2016 Nobuyoshi Nakada <nobu@r...> + + * configure.in (RUBY_CHECK_BUILTIN_SETJMP): declare t as NORETURN + to suppress warnings by -Wsuggest-attribute=noreturn. + [ruby-core:75510] [Bug #12383] + Tue May 17 10:40:18 2016 Nobuyoshi Nakada <nobu@r...> * configure.in (RUBY_CHECK_SETJMP): needs the header and proper Index: configure.in =================================================================== --- configure.in (revision 55022) +++ configure.in (revision 55023) @@ -2603,6 +2603,9 @@ AC_CACHE_CHECK(for __builtin_setjmp, ac_ https://github.com/ruby/ruby/blob/trunk/configure.in#L2603 [AC_TRY_LINK([@%:@include <setjmp.h> @%:@include <stdio.h> jmp_buf jb; + @%:@ifdef NORETURN + NORETURN(void t(void)); + @%:@endif void t(void) {__builtin_longjmp($cast jb, 1);} int jump(void) {(void)(__builtin_setjmp($cast jb) ? 1 : 0); return 0;}], [ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/