Date: Fri, 17 Sep 1999 14:15:10 +0200 From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: Gregory Bond <gnb@itga.com.au> Cc: hackers@FreeBSD.ORG Subject: Re: "style" question Message-ID: <19990917141510.A85883@rucus.ru.ac.za> In-Reply-To: <199909170821.SAA15276@lightning.itga.com.au> References: <199909170821.SAA15276@lightning.itga.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri 1999-09-17 (18:21), Gregory Bond wrote: > I'm looking at cleaning up a few compile nits and I'm wondering what the > officially approved way of silencing "may not be used" warnings: > > int > foo(int flag) > { > int j; j = 0; > if (flag) > j = 1; > return j; > } Or, if you really want to, use your other return scheme. In other words, initialize j, probably to 0. Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990917141510.A85883>