ruby-changes:47351
From: nobu <ko1@a...>
Date: Wed, 2 Aug 2017 12:02:28 +0900 (JST)
Subject: [ruby-changes:47351] nobu:r59467 (trunk): suppress warnings when RUBY_USE_SETJMPEX
nobu 2017-08-02 12:02:22 +0900 (Wed, 02 Aug 2017) New Revision: 59467 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59467 Log: suppress warnings when RUBY_USE_SETJMPEX Modified files: trunk/sprintf.c trunk/vm_trace.c Index: sprintf.c =================================================================== --- sprintf.c (revision 59466) +++ sprintf.c (revision 59467) @@ -1247,6 +1247,10 @@ fmt_setup(char *buf, size_t size, int c, https://github.com/ruby/ruby/blob/trunk/sprintf.c#L1247 #endif #define lower_hexdigits (ruby_hexdigits+0) #define upper_hexdigits (ruby_hexdigits+16) +#if defined RUBY_USE_SETJMPEX && RUBY_USE_SETJMPEX +# undef MAYBE_UNUSED +# define MAYBE_UNUSED(x) x = 0 +#endif #include "vsnprintf.c" static char * Index: vm_trace.c =================================================================== --- vm_trace.c (revision 59466) +++ vm_trace.c (revision 59467) @@ -402,6 +402,9 @@ rb_suppress_tracing(VALUE (*func)(VALUE) https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L402 if (!tracing) th->vm->trace_running--; if (state) { +#if defined RUBY_USE_SETJMPEX && RUBY_USE_SETJMPEX + RB_GC_GUARD(result); +#endif TH_JUMP_TAG(th, state); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/