This isn't C++; variable declaration must be at the top of a block.

Christian Stimming stimming at tuhh.de
Thu Apr 1 10:41:04 EST 2004


I was about to add exactly your comment. *Sigh* Life would be so nice if 
all available compilers would support all available language standards.

BTW does the latest gcc3 now have an option to enable a warning in this 
specific case? Like, -Wmixed-declaration (which we should then enable in 
gnucash)? gcc3.3.1 doesn't have it yet.

Christian


Derek Atkins schrieb:

> linas at linas.org (Linas Vepstas) writes:
> 
> 
>>On Thu, Apr 01, 2004 at 10:25:29AM -0500, Derek Atkins was heard to remark:
>>
>>>	This isn't C++; variable declaration must be at the top of a block.
>>
>>I beleive the current ANSI C supports this, and it was added to gcc
>>recently, so it should work fine.
> 
> 
> It works fine IFF you're running a current GCC.  It's NOT fine when we
> still support older gcc's, which we do.
> 
> 
>>--linas
> 
> 
> -derek
> 



More information about the gnucash-patches mailing list