From d97cd39f42f1aebfab4e98fb78ea915bf448546b Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 5 Aug 2012 15:40:06 +0000 Subject: io.c: suppress unused variable warnings * io.c (pipe_open): suppress warnings agains variable which are used when spawnv is available but fork is not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io.c b/io.c index 33b609e915..52eb49574b 100644 --- a/io.c +++ b/io.c @@ -5506,8 +5506,10 @@ pipe_open(VALUE execarg_obj, const char *modestr, int fmode, convconfig_t *convc spawnv(P_NOWAIT, (cmd), (args)) : \ spawn(P_NOWAIT, (cmd))) # endif +# if !defined(HAVE_FORK) char **args = NULL; char **envp = NULL; +# endif #endif #if !defined(HAVE_FORK) struct rb_execarg sarg, *sargp = &sarg; -- cgit v1.2.3