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:
parent
8b162ce9d1
commit
b8e351a1b9
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue