Browse Source

Remove unused variable in zip_hash_ancestors.

Under gcc 5.4.0, this generates unused variable warnings, which in combination
with -Werror causes a compile error.
David Yip 9 years ago
parent
commit
9293c3dc8d
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/archiver_zip.c

+ 0 - 1
src/archiver_zip.c

@@ -845,7 +845,6 @@ static ZIPentry *zip_hash_ancestors(ZIPinfo *info, char *name)
     if (sep)
     if (sep)
     {
     {
         const size_t namelen = (sep - name) + 1;
         const size_t namelen = (sep - name) + 1;
-        ZIPentry *parent;
 
 
         *sep = '\0';  /* chop off last piece. */
         *sep = '\0';  /* chop off last piece. */
         retval = zip_find_entry(info, name);
         retval = zip_find_entry(info, name);