]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Don't use UNUSED() when an arg is used sometimes.
authorWayne Davison <wayne@opencoder.net>
Tue, 7 Jul 2020 20:12:51 +0000 (13:12 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 7 Jul 2020 20:12:51 +0000 (13:12 -0700)
syscall.c

index b7c8f14e5dbe5aa119d823071eb6467044817314..e98bc98ee869b96425ceb5c333323e6e02f7bb52 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -523,7 +523,7 @@ OFF_T do_fallocate(int fd, OFF_T offset, OFF_T length)
 
 /* Punch a hole at pos for len bytes. The current file position must be at pos and will be
  * changed to be at pos + len. */
-int do_punch_hole(int fd, UNUSED(OFF_T pos), OFF_T len)
+int do_punch_hole(int fd, OFF_T pos, OFF_T len)
 {
 #ifdef HAVE_FALLOCATE
 # ifdef HAVE_FALLOC_FL_PUNCH_HOLE
@@ -540,6 +540,8 @@ int do_punch_hole(int fd, UNUSED(OFF_T pos), OFF_T len)
                return 0;
        }
 # endif
+#else
+       (void)pos;
 #endif
        {
                char zeros[4096];