Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group