about summary refs log tree commit diff
path: root/Src/parse.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2014-11-28 11:30:05 -0800
committerWayne Davison <wayned@users.sourceforge.net>2014-11-28 11:55:17 -0800
commit389954beec04f3019efa759ce92a4af85d24924e (patch)
tree7d275f29a777c64c0d73fc7ca6e20f0653de2b01 /Src/parse.c
parenta6bf64648b31659584b5bcd95ae3a437d1733077 (diff)
downloadzsh-389954beec04f3019efa759ce92a4af85d24924e.tar.gz
zsh-389954beec04f3019efa759ce92a4af85d24924e.tar.xz
zsh-389954beec04f3019efa759ce92a4af85d24924e.zip
unposted: fix compiler set-but-not-used warning.
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/parse.c b/Src/parse.c
index 433efb94e..4ceeb4eaf 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -2590,7 +2590,7 @@ eccopyredirs(Estate s)
 {
     Wordcode pc = s->pc;
     wordcode code = *pc;
-    int ncode, ncodes = 0, r, type;
+    int ncode, ncodes = 0, r;
 
     if (wc_code(code) != WC_REDIR)
 	return NULL;
@@ -2598,7 +2598,9 @@ eccopyredirs(Estate s)
     init_parse();
 
     while (wc_code(code) == WC_REDIR) {
-	type = WC_REDIR_TYPE(code);
+#ifdef DEBUG
+	int type = WC_REDIR_TYPE(code);
+#endif
 
 	DPUTS(type == REDIR_HEREDOC || type == REDIR_HEREDOCDASH,
 	      "unexpanded here document");