[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r113498: src/callproc.c (child_setup): Silence compi
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] trunk r113498: src/callproc.c (child_setup): Silence compiler warnings. |
Date: |
Tue, 23 Jul 2013 01:11:46 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 113498
revision-id: address@hidden
parent: address@hidden
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Tue 2013-07-23 03:11:40 +0200
message:
src/callproc.c (child_setup): Silence compiler warnings.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/callproc.c callproc.c-20091113204419-o5vbwnq5f7feedwu-248
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-07-22 15:30:54 +0000
+++ b/src/ChangeLog 2013-07-23 01:11:40 +0000
@@ -1,3 +1,8 @@
+2013-07-23 Juanma Barranquero <address@hidden>
+
+ * callproc.c (child_setup)[!WINDOWSNT]: Move exec_errno and pid
+ here to silence compiler warnings.
+
2013-07-22 Paul Eggert <address@hidden>
* sysdep.c (frame) [__FreeBSD__]: #define to freebsd_frame
=== modified file 'src/callproc.c'
--- a/src/callproc.c 2013-07-21 06:53:47 +0000
+++ b/src/callproc.c 2013-07-23 01:11:40 +0000
@@ -1193,14 +1193,15 @@
{
char **env;
char *pwd_var;
- int exec_errno;
#ifdef WINDOWSNT
int cpid;
HANDLE handles[3];
+#else
+ int exec_errno;
+
+ pid_t pid = getpid ();
#endif /* WINDOWSNT */
- pid_t pid = getpid ();
-
/* 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.
If using vfork and C_ALLOCA (when Emacs used to include
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r113498: src/callproc.c (child_setup): Silence compiler warnings.,
Juanma Barranquero <=