1
0
Fork 0
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:
Nobuyoshi Nakada 2020-06-22 06:17:12 +09:00
parent 0e3ead344c
commit 54ad2bd6d0
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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
/**********************************************************/