diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-08 15:00:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-08 15:00:27 +0000 |
commit | cb2fd073d9032279a13c5ae28bc039e310972ef8 (patch) | |
tree | 66f2d9aa164ea080b9c1b748448db92c222df474 | |
parent | a124f33d6b3d7d170f997c34041d696b4999bf0f (diff) | |
download | ruby-cb2fd073d9032279a13c5ae28bc039e310972ef8.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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", |