From: Wayne Davison Date: Tue, 7 Jul 2020 20:12:51 +0000 (-0700) Subject: Don't use UNUSED() when an arg is used sometimes. X-Git-Tag: v3.2.3pre1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3269275a88380b616ed647abbd775bd43fe5c95;p=thirdparty%2Frsync.git Don't use UNUSED() when an arg is used sometimes. --- diff --git a/syscall.c b/syscall.c index b7c8f14e..e98bc98e 100644 --- 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];