aboutsummaryrefslogtreecommitdiffstats
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-11-21 00:29:51 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-11-21 00:29:52 -0800
commita6db9e8d7bfbaa6b2880e06b68c60821217b2395 (patch)
tree01c3da6ffdcef24f7de3e1372593a9f59982e9fd /mjit_worker.c
parent8750d001c2d02894d0014c1f61009e2bccb8d428 (diff)
downloadruby-a6db9e8d7bfbaa6b2880e06b68c60821217b2395.tar.gz
Remove the unused o_file definition
It's calculated inside compile_c_to_so again.
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 2a3cf97772..d41011721e 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -1084,10 +1084,6 @@ convert_unit_to_func(struct rb_mjit_unit *unit)
int c_file_len = (int)sizeof(c_file_buff);
static const char c_ext[] = ".c";
static const char so_ext[] = DLEXT;
-#ifndef _MSC_VER
- static const char o_ext[] = ".o";
- char *o_file;
-#endif
c_file_len = sprint_uniq_filename(c_file_buff, c_file_len, unit->id, MJIT_TMP_PREFIX, c_ext);
if (c_file_len >= (int)sizeof(c_file_buff)) {
@@ -1097,11 +1093,6 @@ convert_unit_to_func(struct rb_mjit_unit *unit)
}
++c_file_len;
-#ifndef _MSC_VER
- o_file = alloca(c_file_len - sizeof(c_ext) + sizeof(o_ext));
- memcpy(o_file, c_file, c_file_len - sizeof(c_ext));
- memcpy(&o_file[c_file_len - sizeof(c_ext)], o_ext, sizeof(o_ext));
-#endif
so_file = alloca(c_file_len - sizeof(c_ext) + sizeof(so_ext));
memcpy(so_file, c_file, c_file_len - sizeof(c_ext));
memcpy(&so_file[c_file_len - sizeof(c_ext)], so_ext, sizeof(so_ext));