Re: Sun Studio compiler warnings

From: "Robert Haas" <robertmhaas(at)gmail(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "PG Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Sun Studio compiler warnings
Date: 2008-10-31 01:04:27
Message-ID: 603c8f070810301804j7f166cbckc6dfd3ce9af47d23@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> 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?

...Robert

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2008-10-31 01:18:08 Re: Decreasing WAL size effects
Previous Message Tom Lane 2008-10-31 00:30:33 Re: Strange query behavior where clause produces odd behavior on '>' query