Re: cleanup in code
От | Amit Kapila |
---|---|
Тема | Re: cleanup in code |
Дата | |
Msg-id | CAA4eK1JQGdT4An1rXOdKk75hBhy8NiJVKKUL2Rdvo_AfcRzA8Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: cleanup in code (Heikki Linnakangas <hlinnakangas@vmware.com>) |
Список | pgsql-hackers |
On Wed, Jan 8, 2014 at 1:25 AM, Heikki Linnakangas <hlinnakangas@vmware.com> wrote: > On 01/07/2014 05:20 PM, Tom Lane wrote: >> >> David Rowley <dgrowleyml@gmail.com> writes: >>> >>> I think it will be like Andres said up thread, to stop multiple >>> evaluations >>> of the expression passed to the macro. >> >> >> Exactly. We are not going to risk multiple evals in a macro as commonly >> used as elog/ereport; the risk/benefit ratio is just too high. >> >> I don't see anything wrong with suppressing this warning by inserting >> an additional return statement. The code is already plastered with such >> things, from the days before we had any unreachability hints in >> elog/ereport. And as I said upthread, there is no good reason to suppose >> that the unreachability hints are always recognized by every compiler. >> I take this behavior of MSVC as proof of that statement. > > > Yeah, I was just surprised because I thought MSVC understood it. Committed > the additional return statement. Thanks for committing both the patches for cleanup. With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: