Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 16:18:08 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Chris Rees <crees@FreeBSD.org>
Cc:        Andrew Turner <andrew@FreeBSD.org>, svn-src-head@FreeBSD.org, Alexey Dokuchaev <danfe@FreeBSD.org>, src-committers@FreeBSD.org, svn-src-all@FreeBSD.org
Subject:   Re: svn commit: r240549 - head/sys/arm/tegra
Message-ID:  <38FB39C4-7626-4D54-8197-E302BB9452D2@FreeBSD.org>
In-Reply-To: <CADLo83-5zQBdf3ndBXO4qbkXJgaFPxGfE86LSDGqJ4g3k_4gkw@mail.gmail.com>
References:  <201209160755.q8G7tnMH036332@svn.freebsd.org> <20120916092818.GA81952@FreeBSD.org> <CADLo83-5zQBdf3ndBXO4qbkXJgaFPxGfE86LSDGqJ4g3k_4gkw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 Sep 2012, at 10:37, Chris Rees wrote:

> Actually:
>=20
> 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. =20

David=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38FB39C4-7626-4D54-8197-E302BB9452D2>