[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 4.9.1 suggests -std=c99

From: Paul Eggert
Subject: Re: GCC 4.9.1 suggests -std=c99
Date: Tue, 09 Sep 2014 08:21:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Eli Zaretskii wrote:
do we actually want to use such initializations inside a for loop?

It's a better style, as it scopes the control variable better. And we are assuming C99 in the trunk nowadays.

It will be a portability problem only if we run into a pre-C99 compiler that supports C99-style statements-before-declarations (which we're already using in the trunk) but does not support a C99-style declaration as the first clause of a for-loop. I'd be a bit surprised if such a compiler were in current use (but then I've been surprised before ...).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]