]> git.eshelyaron.com Git - emacs.git/commitdiff
src/callproc.c (child_setup): Silence compiler warnings.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 23 Jul 2013 01:11:40 +0000 (03:11 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 23 Jul 2013 01:11:40 +0000 (03:11 +0200)
src/ChangeLog
src/callproc.c

index 1ad809dffab89199f7e0018f919ebfb3f4e82a53..1423b9d366e92395ab5e4d635f463c856d564c75 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-23  Juanma Barranquero  <lekktu@gmail.com>
+
+       * callproc.c (child_setup)[!WINDOWSNT]: Move exec_errno and pid
+       here to silence compiler warnings.
+
 2013-07-22  Paul Eggert  <eggert@cs.ucla.edu>
 
        * sysdep.c (frame) [__FreeBSD__]: #define to freebsd_frame
index 282a08056f8234bf38d67ad139d3640b73770acd..91f29bd589b4ba1d2d0b38c70b29fc14895ce622 100644 (file)
@@ -1193,13 +1193,14 @@ child_setup (int in, int out, int err, char **new_argv, bool set_pgrp,
 {
   char **env;
   char *pwd_var;
-  int exec_errno;
 #ifdef WINDOWSNT
   int cpid;
   HANDLE handles[3];
-#endif /* WINDOWSNT */
+#else
+  int exec_errno;
 
   pid_t pid = getpid ();
+#endif /* WINDOWSNT */
 
   /* Note that use of alloca is always safe here.  It's obvious for systems
      that do not have true vfork or that have true (stack) alloca.