mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Use canary cond also if not VM_CHECK_MODE to suppress warnings
This commit is contained in:
parent
0e3ead344c
commit
54ad2bd6d0
@ -158,8 +158,8 @@ CC_SET_FASTPATH(const struct rb_callcache *cc, vm_call_handler func, bool enable
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define SETUP_CANARY(cond) /* void */
|
||||
#define CHECK_CANARY(cond, insn) /* void */
|
||||
#define SETUP_CANARY(cond) if (cond) {} else {}
|
||||
#define CHECK_CANARY(cond, insn) if (cond) {(void)(insn);}
|
||||
#endif
|
||||
|
||||
/**********************************************************/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user