]> mj.ucw.cz Git - libucw.git/commitdiff
avoid compiler warnings with debugging turned off
authorRobert Spalek <robert@ucw.cz>
Mon, 27 Feb 2006 04:50:05 +0000 (14:50 +1000)
committerRobert Spalek <robert@peanut.(none)>
Mon, 27 Feb 2006 04:50:05 +0000 (14:50 +1000)
lib/lizard.c
lib/slists.c

index 945fe877242cd377e7979e53852912b238c2ac67..10fd5f0c9fb2154d920cea743c4b77b23cb36db7 100644 (file)
@@ -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
index fffc64ec05f9893a7ee35daf2a02e1cc6d78157f..42105c2036cb781e3cef3037db228988e0bc6122 100644 (file)
@@ -21,6 +21,7 @@ slist_raw_prev(slist *l, snode *n)
       m = m->next;
     }
   ASSERT(0);
+  return NULL;
 }
 
 void *