mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use canary cond also if not VM_CHECK_MODE to suppress warnings
This commit is contained in:
parent
0e3ead344c
commit
54ad2bd6d0
1 changed files with 2 additions and 2 deletions
|
@ -158,8 +158,8 @@ CC_SET_FASTPATH(const struct rb_callcache *cc, vm_call_handler func, bool enable
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define SETUP_CANARY(cond) /* void */
|
#define SETUP_CANARY(cond) if (cond) {} else {}
|
||||||
#define CHECK_CANARY(cond, insn) /* void */
|
#define CHECK_CANARY(cond, insn) if (cond) {(void)(insn);}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**********************************************************/
|
/**********************************************************/
|
||||||
|
|
Loading…
Add table
Reference in a new issue