summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 15:00:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 15:00:27 +0000
commitcb2fd073d9032279a13c5ae28bc039e310972ef8 (patch)
tree66f2d9aa164ea080b9c1b748448db92c222df474
parenta124f33d6b3d7d170f997c34041d696b4999bf0f (diff)
mjit.c: argument arrays
* mjit.c (compile_c_to_so): constified constat array and make variable arrays local. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--mjit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mjit.c b/mjit.c
index 7ba8ae7a3c..8b062d5606 100644
--- a/mjit.c
+++ b/mjit.c
@@ -658,9 +658,9 @@ static int
compile_c_to_so(const char *c_file, const char *so_file)
{
int exit_code;
- static const char *input[] = {NULL, NULL};
- static const char *output[] = {"-o", NULL, NULL};
- const char *libs[] = {
+ const char *input[] = {NULL, NULL};
+ const char *output[] = {"-o", NULL, NULL};
+ static const char *const libs[] = {
#ifdef _MSC_VER
LIBRUBYARG_SHARED,
"-link",