1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
Yusuke Endoh 2019-08-01 21:09:59 +09:00
parent 8b162ce9d1
commit b8e351a1b9

View file

@ -1,6 +1,10 @@
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include <ruby/debug.h> #include <ruby/debug.h>
#ifndef MAYBE_UNUSED
# define MAYBE_UNUSED(x) x
#endif
static NOINLINE(VALUE f(VALUE)); static NOINLINE(VALUE f(VALUE));
static NOINLINE(void g(VALUE, void*)); static NOINLINE(void g(VALUE, void*));
extern NOINLINE(void Init_bug_14384(void)); extern NOINLINE(void Init_bug_14384(void));