Re: refactoring comment.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: refactoring comment.c
Дата
Msg-id 9348.1282959355@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: refactoring comment.c  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: refactoring comment.c  (Robert Haas <robertmhaas@gmail.com>)
Re: refactoring comment.c  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Didn't we inject some smarts so that the compiler would notice that
> elog(ERROR) doesn't return?

No.  If you know a portable (as in "works on every compiler") way
to do that, we could talk.  If only some compilers understand it,
we'll probably end up worse off --- the ones that don't understand it
will still need things like these unreachable assignments, while the
ones that do understand will start warning about unreachable code.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: refactoring comment.c
Следующее
От: Robert Haas
Дата:
Сообщение: Re: refactoring comment.c