From aca607a08c812f28708311b11a1a39d5beda8373 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 4 Dec 2018 06:53:05 +0000 Subject: [PATCH] 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 --- mjit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mjit.c b/mjit.c index f9ed716db0..0d9baadd67 100644 --- a/mjit.c +++ b/mjit.c @@ -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;