Re: Boatload of warnings in CVS HEAD :-( - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Boatload of warnings in CVS HEAD :-(
Date
Msg-id 25398.1178226870@sss.pgh.pa.us
Whole thread Raw
In response to Boatload of warnings in CVS HEAD :-(  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
"Hannes Eder" <Hannes@HannesEder.net> writes:
> Tome Lane wrote:
>> We can fix this for gcc by putting __attribute__((noreturn)) on the
>> declaration of pg_re_throw(), but what about other compilers?

> For MSVC 2005 use __declspec(noreturn) (see [1]). I think this also work for some older versions of MSVC.

It might be too messy to try to do this for all compilers.  I thought of
a plan B, which is to make PG_RE_THROW() expand as
pg_re_throw(), exit(1)

which should be enough to persuade any compiler that understands the
concept at all.  Comments?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: Boatload of warnings in CVS HEAD :-(
Next
From: "Hannes Eder"
Date:
Subject: Re: Boatload of warnings in CVS HEAD :-(