summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-21 10:19:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-21 10:19:10 +0000
commit7e9ee35fb8bb46abef3ba1a3ee204d459cc0e7af (patch)
tree8edc4d87eee87f0ea957be18ae2c9c82881132f1 /mjit_worker.c
parent2617dfa9bd7cc877b87094cee7894ce2709032be (diff)
Remove -Wno-parentheses flag.
[Fix GH-1958] From: Jun Aruga <jaruga@redhat.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index f1404b6aab..d3ad4b77da 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -1094,7 +1094,7 @@ convert_unit_to_func(struct rb_mjit_unit *unit)
success = compile_c_to_so(c_file, so_file);
#else
/* splitting .c -> .o step and .o -> .so step, to cache .o files in the future */
- if (success = compile_c_to_o(c_file, o_file)) {
+ if ((success = compile_c_to_o(c_file, o_file)) != 0) {
const char *o_files[2] = { NULL, NULL };
o_files[0] = o_file;
success = link_o_to_so(o_files, so_file);