From: Jim Meyering Date: Fri, 20 Nov 2009 18:27:20 +0000 (+0100) Subject: build: avoid warnings about unused macros X-Git-Tag: v1.4~23 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=06322b3bbe805b30165313432adec0ce6e1083c0;p=debian%2Fgzip build: avoid warnings about unused macros * unzip.c (LOCTIM): Comment out unused macro. * deflate.c (EQUAL): Remove definition. Use "0" at sole point of use. --- diff --git a/deflate.c b/deflate.c index 3ba514d..3041864 100644 --- a/deflate.c +++ b/deflate.c @@ -251,9 +251,6 @@ local config configuration_table[10] = { * meaning. */ -#define EQUAL 0 -/* result of memcmp for equal strings */ - /* =========================================================================== * Prototypes for local functions. */ @@ -500,7 +497,7 @@ local void check_match(start, match, length) { /* check that the match is indeed a match */ if (memcmp((char*)window + match, - (char*)window + start, length) != EQUAL) { + (char*)window + start, length) != 0) { fprintf(stderr, " start %d, match %d, length %d\n", start, match, length); diff --git a/unzip.c b/unzip.c index ceadbbc..a389e8a 100644 --- a/unzip.c +++ b/unzip.c @@ -39,7 +39,7 @@ #define CRPFLG 1 /* bit for encrypted entry */ #define EXTFLG 8 /* bit for extended local header */ #define LOCHOW 8 /* offset of compression method */ -#define LOCTIM 10 /* file mod time (for decryption) */ +/* #define LOCTIM 10 UNUSED file mod time (for decryption) */ #define LOCCRC 14 /* offset of crc */ #define LOCSIZ 18 /* offset of compressed size */ #define LOCLEN 22 /* offset of uncompressed length */