diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-28 20:03:14 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-28 20:03:14 (GMT) |
commit | 1f18c369cf4b833eed0f29edacd5f1a8f89f99e3 (patch) | |
tree | 0f8864cee7f9e918e7af19edad531e6c936fdc15 /Utilities | |
parent | 18d31fd97c3305b54a6d1d56b6ef8600089ef6da (diff) | |
download | CMake-1f18c369cf4b833eed0f29edacd5f1a8f89f99e3.zip CMake-1f18c369cf4b833eed0f29edacd5f1a8f89f99e3.tar.gz CMake-1f18c369cf4b833eed0f29edacd5f1a8f89f99e3.tar.bz2 |
COMP: Remove warning
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmtar/append.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c index 77bb34f..34434a5 100644 --- a/Utilities/cmtar/append.c +++ b/Utilities/cmtar/append.c @@ -64,11 +64,13 @@ int tar_append_file(TAR *t, char *realname, char *savename) { struct stat s; - int i; libtar_hashptr_t hp; tar_dev_t *td = NULL; tar_ino_t *ti = NULL; +#if !defined(_WIN32) || defined(__CYGWIN__) + int i; char path[TAR_MAXPATHLEN]; +#endif #ifdef DEBUG printf("==> tar_append_file(TAR=0x%lx (\"%s\"), realname=\"%s\", " @@ -151,7 +153,7 @@ tar_append_file(TAR *t, char *realname, char *savename) libtar_hash_add(td->td_h, ti); } -#ifndef WIN32 +#if !defined(_WIN32) || defined(__CYGWIN__) /* check if it's a symlink */ if (TH_ISSYM(t)) { @@ -172,6 +174,7 @@ tar_append_file(TAR *t, char *realname, char *savename) th_set_link(t, path); } #endif + /* print file info */ if (t->options & TAR_VERBOSE) th_print_long_ls(t); |