[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/10] build: avoid warnings about unused macros
From: |
Jim Meyering |
Subject: |
[PATCH 09/10] build: avoid warnings about unused macros |
Date: |
Fri, 20 Nov 2009 21:06:20 +0100 |
From: Jim Meyering <address@hidden>
* unzip.c (LOCTIM): Comment out unused macro.
* deflate.c (EQUAL): Remove definition. Use "0" at sole point of use.
---
deflate.c | 5 +----
unzip.c | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
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 */
--
1.6.5.3.433.g11067
- [PATCH 01/10] build: "make stable" emitted an invalid gnupload command, Jim Meyering, 2009/11/20
- [PATCH 09/10] build: avoid warnings about unused macros,
Jim Meyering <=
- [PATCH 02/10] maint: cfg.mk: remove factored-out ftp host/dir definitions, Jim Meyering, 2009/11/20
- [PATCH 08/10] build: util.c: avoid warnings about add_envopt, Jim Meyering, 2009/11/20
- [PATCH 05/10] build: use gnulib's fdopendir module, Jim Meyering, 2009/11/20
- [PATCH 03/10] maint: tweak formatting of bootstrap.conf, Jim Meyering, 2009/11/20
- [PATCH 04/10] build: enable many warnings, Jim Meyering, 2009/11/20
- [PATCH 06/10] build: avoid warnings from -Wstrict-prototypes, Jim Meyering, 2009/11/20
- [PATCH 07/10] build: avoid many const-related warnings, Jim Meyering, 2009/11/20
- [PATCH 10/10] build: unlzw.c: avoid warnings about unused macros, Jim Meyering, 2009/11/20