Re: Sun Studio compiler warnings

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Sun Studio compiler warnings
Дата
Msg-id 20081031013409.GO3857@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Sun Studio compiler warnings  ("Robert Haas" <robertmhaas@gmail.com>)
Ответы Re: Sun Studio compiler warnings  ("Robert Haas" <robertmhaas@gmail.com>)
Список pgsql-hackers
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 по дате отправления:

Предыдущее
От: "Dann Corbit"
Дата:
Сообщение: Re: Strange query behavior where clause produces odd behavior on '>' query
Следующее
От: "Robert Haas"
Дата:
Сообщение: Re: Sun Studio compiler warnings