diff options
author | Denis Vlasenko | 2008-06-14 19:38:35 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-14 19:38:35 +0000 |
commit | 7a762f9dbf80b406fd1ec21966a9de3c3057fd25 (patch) | |
tree | 693392e63be1070a9ab3f144208845995d6a96e9 /archival/tar.c | |
parent | f8d01d3f66dc50e54dae3c1d0e9b249f71f1dd43 (diff) | |
download | busybox-7a762f9dbf80b406fd1ec21966a9de3c3057fd25.zip busybox-7a762f9dbf80b406fd1ec21966a9de3c3057fd25.tar.gz |
tar: fix "unused parameter 'gzip'" warning
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c index 545081a..64a4e35 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) { |