"Hannes Eder" <[EMAIL PROTECTED]> 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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to