1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-26 21:51:03 +02:00

unposted: fix compiler set-but-not-used warning.

This commit is contained in:
Wayne Davison 2014-11-28 11:30:05 -08:00
parent a6bf64648b
commit 389954beec
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2014-11-28 Wayne Davison <wayned@users.sourceforge.net>
* unposted: avoid compiler warning about a set-but-not-used var.
2014-11-28 Wayne Davison <wayned@users.sourceforge.net>
* 33139: Doc/Zsh/expn.yo: add example for finding broken symlinks.

View file

@ -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");