[PATCH] unzip: avoid warning on unused variable org

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Thu Jan 5 16:11:22 UTC 2017


archival/unzip.c: In function 'read_next_cdf':
archival/unzip.c:271:8: warning: variable 'org' set but
                                 not used [-Wunused-but-set-variable]
  off_t org;
        ^~~

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>
---
 archival/unzip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/archival/unzip.c b/archival/unzip.c
index f1726439d..856abce36 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -268,13 +268,13 @@ static uint32_t find_cdf_offset(void)
 
 static uint32_t read_next_cdf(uint32_t cdf_offset, cdf_header_t *cdf_ptr)
 {
-	off_t org;
+	/* off_t org; */
 	uint32_t magic;
 
 	if (cdf_offset == BAD_CDF_OFFSET)
 		return cdf_offset;
 
-	org = xlseek(zip_fd, 0, SEEK_CUR);
+	/* org = xlseek(zip_fd, 0, SEEK_CUR); */
 	dbg("Reading CDF at 0x%x", (unsigned)cdf_offset);
 	xlseek(zip_fd, cdf_offset, SEEK_SET);
 	xread(zip_fd, &magic, 4);
-- 
2.11.0



More information about the busybox mailing list