]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix certain unused variables on certain conditions
authoruyjulian <uyjulian@gmail.com>
Sat, 27 May 2023 06:50:12 +0000 (01:50 -0500)
committerMartin Matuška <martin@matuska.de>
Thu, 13 Jul 2023 22:20:40 +0000 (00:20 +0200)
libarchive/archive_write_disk_posix.c

index a9c4530933a6f81d8cf9adc0c01d1b1127885613..7aeb920c50004452dde5a5ac5ac67b33bc8dbb4b 100644 (file)
@@ -2804,8 +2804,8 @@ check_symlinks_fsobj(char *path, int *a_eno, struct archive_string *a_estr,
     !(defined(HAVE_OPENAT) && defined(HAVE_FSTATAT) && defined(HAVE_UNLINKAT))
        /* Platform doesn't have lstat, so we can't look for symlinks. */
        (void)path; /* UNUSED */
-       (void)error_number; /* UNUSED */
-       (void)error_string; /* UNUSED */
+       (void)a_eno; /* UNUSED */
+       (void)a_estr; /* UNUSED */
        (void)flags; /* UNUSED */
        (void)checking_linkname; /* UNUSED */
        return (ARCHIVE_OK);
@@ -3579,7 +3579,9 @@ set_time(int fd, int mode, const char *name,
        (void)fd; /* UNUSED */
        (void)mode; /* UNUSED */
        (void)name; /* UNUSED */
+       (void)atime; /* UNUSED */
        (void)atime_nsec; /* UNUSED */
+       (void)mtime; /* UNUSED */
        (void)mtime_nsec; /* UNUSED */
        return (ARCHIVE_WARN);
 #endif