diff options
author | Russ Cox <rsc@swtch.com> | 2010-03-10 14:50:33 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-03-10 14:50:33 -0800 |
commit | 0c9c620f39e56c42802504003fd05664aba670a4 (patch) | |
tree | ad14a1a51f3b6193d0603725d62a34fbc4647c49 /src/libavl | |
parent | 2fe14f1315eb8d3235ea8f978e5bd9444f467c2b (diff) | |
download | plan9port-0c9c620f39e56c42802504003fd05664aba670a4.tar.gz plan9port-0c9c620f39e56c42802504003fd05664aba670a4.tar.bz2 plan9port-0c9c620f39e56c42802504003fd05664aba670a4.zip |
fix type-punned pointer warnings from gcc
R=rsc
http://codereview.appspot.com/396042
Diffstat (limited to 'src/libavl')
-rw-r--r-- | src/libavl/avl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libavl/avl.c b/src/libavl/avl.c index 2567c98d..b2c2f7d9 100644 --- a/src/libavl/avl.c +++ b/src/libavl/avl.c @@ -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); } +*/ |