We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3db7f63 commit 1dfe75bCopy full SHA for 1dfe75b
ext/bigdecimal/bigdecimal.c
@@ -62,7 +62,11 @@ static ID id_eq;
62
static ID id_half;
63
64
/* MACRO's to guard objects from GC by keeping them in stack */
65
+#ifdef RBIMPL_ATTR_MAYBE_UNUSED
66
+#define ENTER(n) RBIMPL_ATTR_MAYBE_UNUSED() volatile VALUE vStack[n];int iStack=0
67
+#else
68
#define ENTER(n) volatile VALUE RB_UNUSED_VAR(vStack[n]);int iStack=0
69
+#endif
70
#define PUSH(x) (vStack[iStack++] = (VALUE)(x))
71
#define SAVE(p) PUSH((p)->obj)
72
#define GUARD_OBJ(p,y) ((p)=(y), SAVE(p))
0 commit comments