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 <[EMAIL PROTECTED]> * 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 [EMAIL PROTECTED]