From 25a20a3ad805aa2e504a9bd3d0dd66211fcdd0dc Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Tue, 7 Aug 2012 00:07:01 +0200 Subject: [PATCH] src/w32.c: Silence compiler warnings. (map_w32_filename): Remove unused variable `is_fat'. (chase_symlinks): Add parentheses around expression. --- src/ChangeLog | 6 ++++++ src/w32.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5bccda264b2..ed2a18af3c6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-08-06 Juanma Barranquero + + * w32.c: Silence compiler warnings. + (map_w32_filename): Remove unused variable `is_fat'. + (chase_symlinks): Add parentheses around expression. + 2012-08-06 Glenn Morris * sysdep.c: Respect BROKEN_GETWD. diff --git a/src/w32.c b/src/w32.c index 810ae024173..4c17ce899a7 100644 --- a/src/w32.c +++ b/src/w32.c @@ -2395,7 +2395,6 @@ map_w32_filename (const char * name, const char ** pPath) char c; char * path; const char * save_name = name; - int is_fat = 0; if (strlen (name) >= MAX_PATH) { @@ -4433,7 +4432,7 @@ chase_symlinks (const char *file) { target[res] = '\0'; if (!(IS_DEVICE_SEP (target[1]) - || IS_DIRECTORY_SEP (target[0]) && IS_DIRECTORY_SEP (target[1]))) + || (IS_DIRECTORY_SEP (target[0]) && IS_DIRECTORY_SEP (target[1])))) { /* Target is relative. Append it to the directory part of the symlink, then copy the result back to target. */ -- 2.39.2