Re: -DDISABLE_ENABLE_ASSERT

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: -DDISABLE_ENABLE_ASSERT
Дата
Msg-id CA+TgmoZpTXEEJxo5eoCpPBHM2CJmf4-NcBaPBv=-ZWew07P3bw@mail.gmail.com
обсуждение исходный текст
Ответ на -DDISABLE_ENABLE_ASSERT  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
On Thu, May 22, 2014 at 4:31 PM, Andres Freund <andres@2ndquadrant.com> wrote:
> Since there seem to be multiple static checkers (coverity, clang
> checker) having problems with assert_enabled can we just optionally
> disable it?
> I am thinking of replacing it by a AssertionsEnabled() macro which then
> is unconditionally defined when DISABLE_ENABLE_ASSERT is defined.

Uh, probably.  But I think you need a better name; specifically, one
that doesn't contain two words which are antonyms.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: -DDISABLE_ENABLE_ASSERT
Следующее
От: Andres Freund
Дата:
Сообщение: Re: -DDISABLE_ENABLE_ASSERT