mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
84d679794f
commit
aca607a08c
1 changed files with 2 additions and 2 deletions
4
mjit.c
4
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue