From: "EBo" <ebo@sandien.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: [9fans] compiler warnings for libavl/avl.c
Date: Tue, 2 Mar 2010 10:02:13 -0700 [thread overview]
Message-ID: <twig.1267549333.38591@swcp.com> (raw)
In-Reply-To: <7dfd70b01002260716p2bfbec09rfb305f284d9a1433@mail.gmail.com>
The following two subroutines are defined and not used anywhere. Should they
redefined as void or possibly removed?
EBo --
================
static void
walkavl(Avl *t, void (*f)(Avl*, void*), void *v)
{
if(t == nil)
return;
walkavl(t->n[0], f, v);
f(t, v);
walkavl(t->n[1], f, v);
}
static void
checkparents(Avl *a, Avl *p)
{
if(a == nil)
return;
if(a->p != p)
print("bad parent\n");
checkparents(a->n[0], a);
checkparents(a->n[1], a);
}
next prev parent reply other threads:[~2010-03-02 17:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 9:43 [9fans] Has Anyone compiled 9vx on snow leopard ? prem
2010-02-26 15:16 ` Oleg Finkelshteyn
2010-03-02 17:02 ` EBo [this message]
2010-03-02 17:12 ` [9fans] compiler warnings for libavl/avl.c erik quanstrom
2010-03-02 17:40 ` EBo
2010-03-02 17:50 ` Edward E Elzey
2010-03-02 17:52 ` erik quanstrom
2010-03-02 18:41 ` EBo
2010-03-04 18:10 ` Russ Cox
2010-03-01 9:49 ` [9fans] Has Anyone compiled 9vx on snow leopard ? prem
2010-03-01 9:49 ` prem
2010-03-01 10:30 ` John Stalker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=twig.1267549333.38591@swcp.com \
--to=ebo@sandien.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).