summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/extract.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 21:43:39 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 21:43:39 (GMT)
commit5d1000e68cc268496582b1939759f5c2ccbe1c42 (patch)
treeeb53a81321c72fc5847b1bc1e17b966759662b6f /Utilities/cmtar/extract.c
parent5222266e7e8c4b6707ce639f7629fb8c85170698 (diff)
downloadCMake-5d1000e68cc268496582b1939759f5c2ccbe1c42.zip
CMake-5d1000e68cc268496582b1939759f5c2ccbe1c42.tar.gz
CMake-5d1000e68cc268496582b1939759f5c2ccbe1c42.tar.bz2
COMP: Remove more warnings
Diffstat (limited to 'Utilities/cmtar/extract.c')
-rw-r--r--Utilities/cmtar/extract.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/Utilities/cmtar/extract.c b/Utilities/cmtar/extract.c
index 7ceece1..b096500 100644
--- a/Utilities/cmtar/extract.c
+++ b/Utilities/cmtar/extract.c
@@ -106,6 +106,11 @@ tar_set_file_perms(TAR *t, char *realname)
return -1;
}
+#else /* WIN32 */
+ (void)filename;
+ (void)gid;
+ (void)uid;
+ (void)mode;
#endif /* WIN32 */
return 0;
@@ -273,6 +278,11 @@ tar_extract_regfile(TAR *t, char *realname)
printf("### done extracting %s\n", filename);
#endif
+ (void)filename;
+ (void)gid;
+ (void)uid;
+ (void)mode;
+
return 0;
}
@@ -340,6 +350,8 @@ tar_extract_hardlink(TAR * t, char *realname)
#endif
#ifndef WIN32
if (link(linktgt, filename) == -1)
+#else
+ (void)linktgt;
#endif
{
#ifdef DEBUG
@@ -421,6 +433,10 @@ tar_extract_chardev(TAR *t, char *realname)
#ifndef WIN32
if (mknod(filename, mode | S_IFCHR,
compat_makedev(devmaj, devmin)) == -1)
+#else
+ (void)devmin;
+ (void)devmaj;
+ (void)mode;
#endif
{
#ifdef DEBUG
@@ -462,6 +478,10 @@ tar_extract_blockdev(TAR *t, char *realname)
#ifndef WIN32
if (mknod(filename, mode | S_IFBLK,
compat_makedev(devmaj, devmin)) == -1)
+#else
+ (void)devmin;
+ (void)devmaj;
+ (void)mode;
#endif
{
#ifdef DEBUG
@@ -557,6 +577,8 @@ tar_extract_fifo(TAR *t, char *realname)
#endif
#ifndef WIN32
if (mkfifo(filename, mode) == -1)
+#else
+ (void)mode;
#endif
{
#ifdef DEBUG