From a1da13d220a351aa3abdcb61fce89bc61db6796f Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Mon, 27 Feb 2006 14:50:05 +1000 Subject: [PATCH] avoid compiler warnings with debugging turned off --- lib/lizard.c | 2 +- lib/slists.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lizard.c b/lib/lizard.c index 945fe877..10fd5f0c 100644 --- a/lib/lizard.c +++ b/lib/lizard.c @@ -177,7 +177,7 @@ lizard_compress(byte *in, uns in_len, byte *out) while (in < in_end) { uns hash = hashf(in); - byte *best; + byte *best = NULL; uns len = find_match(hash_tab[hash], hash_rec, in, in_end, &best, head); if (len < 3) #if 0 // TODO: now, our routine does not detect matches of length 2 diff --git a/lib/slists.c b/lib/slists.c index fffc64ec..42105c20 100644 --- a/lib/slists.c +++ b/lib/slists.c @@ -21,6 +21,7 @@ slist_raw_prev(slist *l, snode *n) m = m->next; } ASSERT(0); + return NULL; } void * -- 2.39.2