This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-in-cxx] Put empty loop ';' on new line
- From: NightStrike <nightstrike at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 1 Feb 2009 22:56:42 -0500
- Subject: Re: [gcc-in-cxx] Put empty loop ';' on new line
- References: <m3fxiyr8ij.fsf@google.com>
On Sun, Feb 1, 2009 at 1:11 AM, Ian Lance Taylor <iant@google.com> wrote:
> g++ warns when a loop is terminated by a semicolon with no intervening
> whitespace. This patch avoids this warning in several cases by
> adding a newline and appropriate indentation. Committed to gcc-in-cxx
> branch.
This is probably a stupid question, but why are there empty loops to begin with?