[前][次][番号順一覧][スレッド一覧]

ruby-changes:24581

From: nobu <ko1@a...>
Date: Mon, 6 Aug 2012 00:40:20 +0900 (JST)
Subject: [ruby-changes:24581] nobu:r36632 (trunk): io.c: suppress unused variable warnings

nobu	2012-08-06 00:40:06 +0900 (Mon, 06 Aug 2012)

  New Revision: 36632

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36632

  Log:
    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.

  Modified files:
    trunk/io.c

Index: io.c
===================================================================
--- io.c	(revision 36631)
+++ io.c	(revision 36632)
@@ -5506,8 +5506,10 @@
 				      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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]