From 7a762f9dbf80b406fd1ec21966a9de3c3057fd25 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 14 Jun 2008 19:38:35 +0000 Subject: [PATCH] tar: fix "unused parameter 'gzip'" warning --- archival/tar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archival/tar.c b/archival/tar.c index 545081a01..64a4e35be 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -504,6 +504,9 @@ static int writeFileToTarball(const char *fileName, struct stat *statbuf, } #if ENABLE_FEATURE_TAR_GZIP || ENABLE_FEATURE_TAR_BZIP2 +#if !(ENABLE_FEATURE_TAR_GZIP && ENABLE_FEATURE_TAR_BZIP2) +#define vfork_compressor(tar_fd, gzip) vfork_compressor(tar_fd) +#endif /* Don't inline: vfork scares gcc and pessimizes code */ static void NOINLINE vfork_compressor(int tar_fd, int gzip) { -- 2.25.1