Re: [PORTS] ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5 - Mailing list pgsql-ports

From Mark Hollomon
Subject Re: [PORTS] ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5
Date
Msg-id 38BE63B1.CA50DF52@americasm01.nt.com
Whole thread Raw
In response to ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5  (Mark Dalphin <mdalphin@amgen.com>)
List pgsql-ports
Mark Dalphin wrote:
> ======================================================================
>
> The next several patches all "repair" the same problem. The re-declaration
> of the variable 'i' as an 'int' in the second of two 'for' loops, causes
> an error for the SGI C++ compiler. It complains that 'i' is already in
> scope. This is only a problem in the example code.

Unfortunately, this will cause compilers that more closely follow
the standard to fail. The 'correct' way to solve this is to pull
the declaration of 'i' out of the loop headers.

int i;
for (i ...


--

Mark Hollomon
mhh@nortelnetworks.com
ESN 451-9008 (302)454-9008

pgsql-ports by date:

Previous
From: info@elecat.com
Date:
Subject: Paper catalogues in HTML on the Internet
Next
From: Mark Dalphin
Date:
Subject: Re: [PORTS] ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5