From: Robert Spalek Date: Mon, 27 Feb 2006 04:50:05 +0000 (+1000) Subject: avoid compiler warnings with debugging turned off X-Git-Tag: holmes-import~672^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a1da13d220a351aa3abdcb61fce89bc61db6796f;p=libucw.git avoid compiler warnings with debugging turned off --- 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 *