]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Eliminate compiling warning.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 16 Feb 2009 20:12:49 +0000 (15:12 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 16 Feb 2009 20:12:49 +0000 (15:12 -0500)
SVN-Revision: 648

tar/test/test_symlink_dir.c

index c60e42901fd2e771a85cec0d3f2a9f57e389083a..a8556b6b7ce85d1c6b414e091cfb0dc82b4b3739 100644 (file)
@@ -47,7 +47,10 @@ mkfile(const char *name, int mode, const char *contents, ssize_t size)
 
 DEFINE_TEST(test_symlink_dir)
 {
-       struct stat st, st2;
+       struct stat st;
+#ifndef _WIN32
+       struct stat st2;
+#endif
        int oldumask;
 
        oldumask = umask(0);