[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [patch] archival/tar.c: unused parameter 'gzip' warning
From: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn () axis ! com>
Date: 2008-05-30 7:43:30
Message-ID: 0805300938050.6722 () somehost
[Download RAW message or body]
When .config contains this combination:
CONFIG_FEATURE_TAR_GZIP=y
# CONFIG_FEATURE_TAR_BZIP2 is not set
this warning shows up:
archival/tar.c: In function 'vfork_compressor':
archival/tar.c:508: warning: unused parameter 'gzip'
The attached patch attempts to correct that.
Cheers,
--
Cristian
["tar.c.patch" (TEXT/x-diff)]
--- archival/tar.c.orig 2008-05-20 08:30:30.000000000 +0200
+++ archival/tar.c 2008-05-30 09:35:14.000000000 +0200
@@ -505,7 +505,11 @@
#if ENABLE_FEATURE_TAR_GZIP || ENABLE_FEATURE_TAR_BZIP2
/* Don't inline: vfork scares gcc and pessimizes code */
-static void NOINLINE vfork_compressor(int tar_fd, int gzip)
+static void NOINLINE vfork_compressor(int tar_fd, int gzip
+#if !ENABLE_FEATURE_TAR_GZIP || !ENABLE_FEATURE_TAR_BZIP2
+ATTRIBUTE_UNUSED
+#endif
+)
{
pid_t gzipPid;
#if ENABLE_FEATURE_TAR_GZIP && ENABLE_FEATURE_TAR_BZIP2
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic