aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2015-04-10 19:36:29 -0700
committerPaul Eggert2015-04-10 19:36:54 -0700
commite3ee455d2992f4adddcd27196b47273f6cacb4e1 (patch)
tree285d61dbbf6ee7dfe0609d114cc6be840d1ec131
parent68a74dd12ad8c28bfe6fb2c0232a7beea548c4c6 (diff)
downloademacs-e3ee455d2992f4adddcd27196b47273f6cacb4e1.tar.gz
emacs-e3ee455d2992f4adddcd27196b47273f6cacb4e1.zip
Fix problems found by --enable-gcc-warnings
* src/process.c (create_process, Fmake_pipe_process) (Fmake_network_process): Omit unused locals.
-rw-r--r--src/process.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c
index fbc634be49c..5319c6c9c47 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1220,8 +1220,8 @@ list of keywords. */)
1220 if (NILP (key) && SERIALCONN_P (process)) 1220 if (NILP (key) && SERIALCONN_P (process))
1221 return list2 (Fplist_get (contact, QCport), 1221 return list2 (Fplist_get (contact, QCport),
1222 Fplist_get (contact, QCspeed)); 1222 Fplist_get (contact, QCspeed));
1223 /* FIXME: Return a meaningful value (e.g. the child ends of pipe), 1223 /* FIXME: Return a meaningful value (e.g., the child end of the pipe)
1224 if pipe process is useful for other purposes than receiving 1224 if the pipe process is useful for purposes other than receiving
1225 stderr. */ 1225 stderr. */
1226 if (NILP (key) && PIPECONN_P (process)) 1226 if (NILP (key) && PIPECONN_P (process))
1227 return Qt; 1227 return Qt;
@@ -1751,7 +1751,7 @@ static void
1751create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) 1751create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
1752{ 1752{
1753 struct Lisp_Process *p = XPROCESS (process); 1753 struct Lisp_Process *p = XPROCESS (process);
1754 int inchannel, outchannel, errchannel = -1; 1754 int inchannel, outchannel;
1755 pid_t pid; 1755 pid_t pid;
1756 int vfork_errno; 1756 int vfork_errno;
1757 int forkin, forkout, forkerr = -1; 1757 int forkin, forkout, forkerr = -1;
@@ -1798,7 +1798,6 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
1798 struct Lisp_Process *pp = XPROCESS (p->stderrproc); 1798 struct Lisp_Process *pp = XPROCESS (p->stderrproc);
1799 1799
1800 forkerr = pp->open_fd[SUBPROCESS_STDOUT]; 1800 forkerr = pp->open_fd[SUBPROCESS_STDOUT];
1801 errchannel = pp->open_fd[READ_FROM_SUBPROCESS];
1802 1801
1803 /* Close unnecessary file descriptors. */ 1802 /* Close unnecessary file descriptors. */
1804 close_process_fd (&pp->open_fd[WRITE_TO_SUBPROCESS]); 1803 close_process_fd (&pp->open_fd[WRITE_TO_SUBPROCESS]);
@@ -2128,7 +2127,7 @@ usage: (make-pipe-process &rest ARGS) */)
2128 struct Lisp_Process *p; 2127 struct Lisp_Process *p;
2129 struct gcpro gcpro1; 2128 struct gcpro gcpro1;
2130 Lisp_Object name, buffer; 2129 Lisp_Object name, buffer;
2131 Lisp_Object tem, val; 2130 Lisp_Object tem;
2132 ptrdiff_t specpdl_count; 2131 ptrdiff_t specpdl_count;
2133 int inchannel, outchannel; 2132 int inchannel, outchannel;
2134 2133
@@ -2203,7 +2202,7 @@ usage: (make-pipe-process &rest ARGS) */)
2203 2202
2204 { 2203 {
2205 /* Setup coding systems for communicating with the network stream. */ 2204 /* Setup coding systems for communicating with the network stream. */
2206 struct gcpro gcpro1; 2205
2207 /* Qt denotes we have not yet called Ffind_operation_coding_system. */ 2206 /* Qt denotes we have not yet called Ffind_operation_coding_system. */
2208 Lisp_Object coding_systems = Qt; 2207 Lisp_Object coding_systems = Qt;
2209 Lisp_Object val; 2208 Lisp_Object val;