diff --git a/vm_insnhelper.h b/vm_insnhelper.h index 702c3b7fc3..936778f7f0 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -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 /**********************************************************/