From 7e9ee35fb8bb46abef3ba1a3ee204d459cc0e7af Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 21 Sep 2018 10:19:10 +0000 Subject: Remove -Wno-parentheses flag. [Fix GH-1958] From: Jun Aruga git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 928a9c7114..454eaa438b 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3868,7 +3868,7 @@ vm_trace(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, const VALUE *p VM_ASSERT(vm_event_flags & events); /* increment PC because source line is calculated with PC-1 */ - if (event = (events & (RUBY_EVENT_CLASS | RUBY_EVENT_CALL | RUBY_EVENT_B_CALL))) { + if ((event = (events & (RUBY_EVENT_CLASS | RUBY_EVENT_CALL | RUBY_EVENT_B_CALL))) != 0) { VM_ASSERT(event == RUBY_EVENT_CLASS || event == RUBY_EVENT_CALL || event == RUBY_EVENT_B_CALL); @@ -3889,7 +3889,7 @@ vm_trace(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, const VALUE *p EXEC_EVENT_HOOK(ec, RUBY_EVENT_COVERAGE_LINE, GET_SELF(), 0, 0, 0, Qundef); reg_cfp->pc--; } - if (event = (events & (RUBY_EVENT_END | RUBY_EVENT_RETURN | RUBY_EVENT_B_RETURN))) { + if ((event = (events & (RUBY_EVENT_END | RUBY_EVENT_RETURN | RUBY_EVENT_B_RETURN))) != 0) { VM_ASSERT(event == RUBY_EVENT_END || event == RUBY_EVENT_RETURN || event == RUBY_EVENT_B_RETURN); -- cgit v1.2.3