aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-06-27 10:02:24 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-06-27 10:02:24 +0300
commit0adc72feb84f5b903f6ad9d3f759b1c326fafc6b (patch)
treeca02ec3f8653400d437ef608b7196d89bdddfca7 /src
parentUpdated the filenames in POTFILES.in too. (diff)
downloadxz-0adc72feb84f5b903f6ad9d3f759b1c326fafc6b.tar.xz
Silence a compiler warning on DOS-like systems.
Diffstat (limited to 'src')
-rw-r--r--src/xz/file_io.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xz/file_io.c b/src/xz/file_io.c
index 3c3af0e1..4c52da56 100644
--- a/src/xz/file_io.c
+++ b/src/xz/file_io.c
@@ -73,8 +73,11 @@ io_init(void)
static void
io_unlink(const char *name, const struct stat *known_st)
{
+#ifdef DOSLIKE
// On Windows, st_ino is meaningless, so don't bother testing it.
-#ifndef DOSLIKE
+ // Just silence a compiler warning.
+ (void)known_st;
+#else
struct stat new_st;
if (lstat(name, &new_st)