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

Поиск
Список
Период
Сортировка
От Mark Hollomon
Тема Re: [PORTS] ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5
Дата
Msg-id 38BE63B1.CA50DF52@americasm01.nt.com
обсуждение исходный текст
Ответ на ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5  (Mark Dalphin <mdalphin@amgen.com>)
Список 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 по дате отправления:

Предыдущее
От: info@elecat.com
Дата:
Сообщение: Paper catalogues in HTML on the Internet
Следующее
От: Mark Dalphin
Дата:
Сообщение: Re: [PORTS] ANNOUNCE: Patches for PostgreSQL 6.5.3 on SGI Irix 6.5