Re: [PORTS] ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5

From: "Mark Hollomon" <mhh(at)nortelnetworks(dot)com>
To: Mark Dalphin <mdalphin(at)amgen(dot)com>
Cc: pgsql-ports(at)postgreSQL(dot)org
Subject: Re: [PORTS] ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5
Date: 2000-03-02 12:50:57
Message-ID: 38BE63B1.CA50DF52@americasm01.nt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)nortelnetworks(dot)com
ESN 451-9008 (302)454-9008

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Mark Dalphin 2000-03-02 16:57:37 Re: [PORTS] ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5
Previous Message info 2000-03-02 11:11:17 Paper catalogues in HTML on the Internet