Re: Sun Studio compiler warnings

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: Sun Studio compiler warnings
Дата
Msg-id
603c8f070810301837s47ee1516l180ac1d2738fe776@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Sun Studio compiler warnings Peter Eisentraut <peter_e@gmx.net>
Re: Sun Studio compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: Sun Studio compiler warnings "Robert Haas" <robertmhaas@gmail.com>
Re: Sun Studio compiler warnings Alvaro Herrera <alvherre@commandprompt.com>
Re: Sun Studio compiler warnings "Robert Haas" <robertmhaas@gmail.com>
Ooooh.... yeah.  Time for some caffeine.

...Robert

On Thu, Oct 30, 2008 at 9:34 PM, Alvaro Herrera
 wrote:
> Robert Haas escribió:
>> > The closing semicolon is strictly speaking not allowed here.  We could
>> > remove it, but that would probably upset pgindent?
>> >
>> > I recall that we used to have a bunch of similar problems with the AIX
>> > compilers a long time ago.  Does anyone recall the solution, and do we still
>> > care?  (Note that it's only a warning in this case.)
>>
>> How about the good old
>>
>> do {
>> ...
>> } while (0)
>>
>> trick?
>
> That can't be used because the macro is defining a completely new
> function.
>
> --
> Alvaro Herrera                                http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Dann Corbit
Дата:
FAQ