mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
process.c: suppress warning
* process.c (compare_posix_sh): not used on Win32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
43bc8f9beb
commit
9c48976392
1 changed files with 2 additions and 0 deletions
|
@ -1826,6 +1826,7 @@ rb_exec_getargs(int *argc_p, VALUE **argv_p, int accept_shell, VALUE *env_ret, V
|
|||
return prog;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
struct string_part {
|
||||
const char *ptr;
|
||||
size_t len;
|
||||
|
@ -1839,6 +1840,7 @@ compare_posix_sh(const void *key, const void *el)
|
|||
if (!ret && ((const char *)el)[word->len]) ret = -1;
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, struct rb_exec_arg *e)
|
||||
|
|
Loading…
Reference in a new issue