[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiler warning in glob
From: |
Colin Watson |
Subject: |
Compiler warning in glob |
Date: |
Mon, 15 Oct 2007 14:42:15 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -Wall -W -Wpointer-arith
-Wwrite-strings -Wstrict-prototypes -Wshadow -MT glob.o -MD -MP -MF
.deps/glob.Tpo -c -o glob.o glob.c
glob.c: In function ‘glob_in_dir’:
glob.c:1244: warning: declaration of ‘save’ shadows a previous local
glob.c:1041: warning: shadowed declaration is here
The declaration here looks spurious, so this patch removes it.
2007-10-15 Colin Watson <address@hidden>
* lib/glob.c (glob_in_dir): Remove duplicate declaration of "save".
diff --git a/lib/glob.c b/lib/glob.c
index e8b79ff..a98a06e 100644
--- a/lib/glob.c
+++ b/lib/glob.c
@@ -1241,7 +1241,7 @@ glob_in_dir (const char *pattern, const char *directory,
int flags,
memory_error:
{
- int save = errno;
+ save = errno;
if (flags & GLOB_ALTDIRFUNC)
(*pglob->gl_closedir) (stream);
else
Thanks,
--
Colin Watson address@hidden
- Compiler warning in glob,
Colin Watson <=