diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-04 06:53:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-04 06:53:05 +0000 |
commit | aca607a08c812f28708311b11a1a39d5beda8373 (patch) | |
tree | 8d101197987400521066109353352f2608355533 /mjit.c | |
parent | 84d679794f56de3cc286aa988844a15df2c0cdf5 (diff) | |
download | ruby-aca607a08c812f28708311b11a1a39d5beda8373.tar.gz |
unconstify cast to get rid of VC++ warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -641,7 +641,7 @@ mjit_init(struct mjit_options *opts) cc_path = CC_COMMON_ARGS[0]; verbose(2, "MJIT: CC defaults to %s", cc_path); cc_common_args = xmalloc(sizeof(CC_COMMON_ARGS)); - memcpy(cc_common_args, CC_COMMON_ARGS, sizeof(CC_COMMON_ARGS)); + memcpy((void *)cc_common_args, CC_COMMON_ARGS, sizeof(CC_COMMON_ARGS)); #if MJIT_CFLAGS_PIPE { /* eliminate a flag incompatible with `-pipe` */ size_t i, j; @@ -839,7 +839,7 @@ mjit_finish(int close_handle_p) xfree(header_file); header_file = NULL; #endif - xfree(cc_common_args); cc_common_args = NULL; + xfree((void *)cc_common_args); cc_common_args = NULL; xfree(tmp_dir); tmp_dir = NULL; xfree(pch_file); pch_file = NULL; |