From 9c48976392ea40e2fefc1020366a227f66011bb1 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 13 Jun 2012 07:38:06 +0000 Subject: [PATCH] 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 --- process.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/process.c b/process.c index ea41a4c483..dce3258d97 100644 --- a/process.c +++ b/process.c @@ -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)