ruby-changes:44099
From: ngoto <ko1@a...>
Date: Fri, 16 Sep 2016 21:29:49 +0900 (JST)
Subject: [ruby-changes:44099] ngoto:r56172 (trunk): * internal.h (MAYBE_UNUSED): The fallback definition is needed.
ngoto 2016-09-16 21:29:42 +0900 (Fri, 16 Sep 2016) New Revision: 56172 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56172 Log: * internal.h (MAYBE_UNUSED): The fallback definition is needed. Fix compile error with some non-GCC compilers such as Oracle Solaris Studio 12.3 on Solaris 10. [Bug #12767] [ruby-dev:49807] * internal.h (WARN_UNUSED_RESULT): ditto. Modified files: trunk/ChangeLog trunk/internal.h Index: ChangeLog =================================================================== --- ChangeLog (revision 56171) +++ ChangeLog (revision 56172) @@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Sep 16 21:28:25 2016 Naohisa Goto <ngotogenome@g...> + + * internal.h (MAYBE_UNUSED): The fallback definition is needed. + Fix compile error with some non-GCC compilers such as + Oracle Solaris Studio 12.3 on Solaris 10. + [Bug #12767] [ruby-dev:49807] + + * internal.h (WARN_UNUSED_RESULT): ditto. + Fri Sep 16 21:19:51 2016 Naohisa Goto <ngotogenome@g...> * hash.c (each_pair_i_fast): Fix compile error with old version of Index: internal.h =================================================================== --- internal.h (revision 56171) +++ internal.h (revision 56172) @@ -26,6 +26,14 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/internal.h#L26 #define LIKELY(x) RB_LIKELY(x) #define UNLIKELY(x) RB_UNLIKELY(x) +#ifndef MAYBE_UNUSED +# define MAYBE_UNUSED(x) x +#endif + +#ifndef WARN_UNUSED_RESULT +# define WARN_UNUSED_RESULT(x) x +#endif + #ifdef HAVE_VALGRIND_MEMCHECK_H # include <valgrind/memcheck.h> # ifndef VALGRIND_MAKE_MEM_DEFINED -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/