diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-22 06:17:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-22 06:19:04 +0900 |
commit | 54ad2bd6d09b8a04baef60dde2998bd40e73db36 (patch) | |
tree | 824d139272a73cedb469c93d88ab723271755fe7 | |
parent | 0e3ead344cbc8a01d476b0c313517cf405a59b66 (diff) |
Use canary cond also if not VM_CHECK_MODE to suppress warnings
-rw-r--r-- | vm_insnhelper.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 /**********************************************************/ |