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

Derek Atkins warlord at MIT.EDU
Thu Apr 1 10:44:42 EST 2004


Christian Stimming <stimming at tuhh.de> writes:

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

Yep, and since we do support systems with gcc 2.x (e.g. RH7.3, our
GC-1.8 base system) we need to continue using the older C-style.

> 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.

I recall seeing patches to do this, but I do not recall hearing about
it actually integrated into gcc.

> Christian

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-patches mailing list