Date: Sat, 8 Jun 2002 15:14:57 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: current@freebsd.org Subject: Re: Is it bad to use index() internally in libc? Message-ID: <20020608151212.W18399-100000@gamplex.bde.org> In-Reply-To: <20020608030034.GA21440@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 8 Jun 2002, Giorgos Keramidas wrote: > WARNS=5 is rather picky about our libc in CURRENT. One of the > warnings I can see is: > > /home/charon/a/freebsd/src/lib/libc/db/btree/bt_delete.c: > In function `__bt_stkacq': > /home/charon/a/freebsd/src/lib/libc/db/btree/bt_delete.c:155: > warning: declaration of `index' shadows a global declaration > > Is it worth going through the file and changing `index' with something > that does not conflict with index(3)? `index' is a fine variable name. This warning is really about traditional namespace pollution in <string.h> stealing a fine variable name. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020608151212.W18399-100000>