mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Fixed 'maybe_unused' attribute
```
../../../src/ext/bigdecimal/bigdecimal.c:303:5: error: 'maybe_unused' attribute cannot be applied to types
ENTER(1);
^
```
This commit is contained in:
parent
3db7f6353f
commit
1dfe75b0be
@ -62,7 +62,11 @@ static ID id_eq;
|
||||
static ID id_half;
|
||||
|
||||
/* MACRO's to guard objects from GC by keeping them in stack */
|
||||
#ifdef RBIMPL_ATTR_MAYBE_UNUSED
|
||||
#define ENTER(n) RBIMPL_ATTR_MAYBE_UNUSED() volatile VALUE vStack[n];int iStack=0
|
||||
#else
|
||||
#define ENTER(n) volatile VALUE RB_UNUSED_VAR(vStack[n]);int iStack=0
|
||||
#endif
|
||||
#define PUSH(x) (vStack[iStack++] = (VALUE)(x))
|
||||
#define SAVE(p) PUSH((p)->obj)
|
||||
#define GUARD_OBJ(p,y) ((p)=(y), SAVE(p))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user