fix type-punned pointer warnings from gcc

R=rsc
http://codereview.appspot.com/396042
This commit is contained in:
Russ Cox 2010-03-10 14:50:33 -08:00
parent 2fe14f1315
commit 0c9c620f39
11 changed files with 57 additions and 29 deletions

View file

@ -211,6 +211,7 @@ _deleteavl(Avl **tp, Avl *p, Avl *rx, int(*cmp)(Avl*,Avl*), Avl **del,
return -(ob != 0 && (*tp)->bal == 0);
}
/*
static void
checkparents(Avl *a, Avl *p)
{
@ -221,6 +222,7 @@ checkparents(Avl *a, Avl *p)
checkparents(a->n[0], a);
checkparents(a->n[1], a);
}
*/
struct Avltree
{
@ -403,6 +405,7 @@ endwalk(Avlwalk *w)
free(w);
}
/*
static void
walkavl(Avl *t, void (*f)(Avl*, void*), void *v)
{
@ -412,3 +415,4 @@ walkavl(Avl *t, void (*f)(Avl*, void*), void *v)
f(t, v);
walkavl(t->n[1], f, v);
}
*/