Date: Sun, 16 Sep 2012 14:37:31 -0400 From: Eitan Adler <eadler@freebsd.org> To: Chris Rees <utisoft@gmail.com> Cc: Ian Lepore <freebsd@damnhippie.dyndns.org>, Alexey Dokuchaev <danfe@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, David Chisnall <theraven@freebsd.org>, Andrew Turner <andrew@freebsd.org>, Bruce Evans <brde@optusnet.com.au>, svn-src-head@freebsd.org Subject: Re: svn commit: r240549 - head/sys/arm/tegra Message-ID: <CAF6rxgn6GhQ-amdCSAApM%2B2=gCOznSfLqJ%2B6b31yE9AHcokc1Q@mail.gmail.com> In-Reply-To: <CADLo839RJQY6hsoryBGR382tQhfVLBRTLeJOPkNntg77KjZ4kg@mail.gmail.com> References: <201209160755.q8G7tnMH036332@svn.freebsd.org> <20120916092818.GA81952@FreeBSD.org> <CADLo83-5zQBdf3ndBXO4qbkXJgaFPxGfE86LSDGqJ4g3k_4gkw@mail.gmail.com> <38FB39C4-7626-4D54-8197-E302BB9452D2@FreeBSD.org> <CADLo8381qBMC0TvJ8BXd29OFBcB9=R0NNi_idXi-h4OZ=DHWMA@mail.gmail.com> <1347817284.1114.2.camel@revolution.hippie.lan> <CADLo839RJQY6hsoryBGR382tQhfVLBRTLeJOPkNntg77KjZ4kg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16 September 2012 13:45, Chris Rees <utisoft@gmail.com> wrote: > On 16 September 2012 18:41, Ian Lepore <freebsd@damnhippie.dyndns.org> wrote: >> On Sun, 2012-09-16 at 18:30 +0100, Chris Rees wrote: >>> On 16 Sep 2012 16:19, "David Chisnall" <theraven@freebsd.org> wrote: >>> > >>> > On 16 Sep 2012, at 10:37, Chris Rees wrote: >>> > >>> > > Actually: >>> > > >>> > > for (;;) >>> > > ; >>> > >>> > This form will generate a compiler warning, because it looks like a >>> missing loop body. You can silence the warning by this form: >>> > >>> > for (;;) {} >>> > >>> > This makes it clear that you have an explicit body containing no >>> statements. >>> >>> Please fix the style man page then, and make sure bde approves! >> >> One of the examples allows >> >> for (;;) >> stmt; >> >> Using "continue;" as the statement is consistant with that. > > Ok, so with approval from a docs/src guy I'd like to commit [1] to > update the style page to use continue; instead of a lone ; > > Anyone like to approve/commit? +1 to your patch, though I prefer "do nothing" to "nothing." > > Chris > > [1] http://www.bayofrum.net/~crees/patches/style-empty-loop.diff > -- Eitan Adler Source & Ports committer X11, Bugbusting teams
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgn6GhQ-amdCSAApM%2B2=gCOznSfLqJ%2B6b31yE9AHcokc1Q>