summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-08-01 21:09:59 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-08-01 21:09:59 +0900
commitb8e351a1b9a16ce27f53d15051a1d1f83911b8cb (patch)
treeff11e9bfee49564dd00430b4607a159e076de501 /ext
parent8b162ce9d1003e4e469d8f48cb9a2076fd45b47c (diff)
ext/-test-/bug-14834/bug-14384.c: fallback for MAYBE_UNUSED
__unused__ is unavailable on Sun C. https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-master/log/20190801T112505Z.fail.html.gz
Diffstat (limited to 'ext')
-rw-r--r--ext/-test-/bug-14834/bug-14384.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/-test-/bug-14834/bug-14384.c b/ext/-test-/bug-14834/bug-14384.c
index 0d4103b5d4..3a16a2d222 100644
--- a/ext/-test-/bug-14834/bug-14384.c
+++ b/ext/-test-/bug-14834/bug-14384.c
@@ -1,6 +1,10 @@
#include <ruby/ruby.h>
#include <ruby/debug.h>
+#ifndef MAYBE_UNUSED
+# define MAYBE_UNUSED(x) x
+#endif
+
static NOINLINE(VALUE f(VALUE));
static NOINLINE(void g(VALUE, void*));
extern NOINLINE(void Init_bug_14384(void));