mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c1dbcf9b7e
commit
16391af2e2
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
Fri Sep 16 21:28:25 2016 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* hash.c (each_pair_i_fast): Fix compile error with old version of
|
||||
|
|
|
@ -26,6 +26,14 @@ extern "C" {
|
|||
#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
|
||||
|
|
Loading…
Reference in a new issue