Re: elog/ereport noreturn decoration

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: elog/ereport noreturn decoration
Date: 2012-06-30 14:52:29
Message-ID: 10796.1341067949@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> But my point was, there aren't any unused code warnings. None of the
> commonly used compilers issue any. I'd be interested to know if there
> is any recent C compiler supported by PostgreSQL that issues some kind
> of unused code warning under any circumstances, and see an example of
> that. Then we can determine whether there is an issue here.

Well, the Solaris Studio compiler produces "warning: statement not
reached" messages, as seen for example on buildfarm member castoroides.
I don't have one available to experiment with, so I'm not sure whether
it knows that abort() doesn't return; but I think it rather foolish to
assume that such a combination doesn't exist in the wild.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-06-30 15:08:45 Re: Pruning the TODO list
Previous Message Edson Richter 2012-06-30 14:10:25 Re: Can someone help me to get ODBC fdw running on windows?