Re: unconstify equivalent for volatile

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: unconstify equivalent for volatile
Дата
Msg-id 9f355e2f-e3a0-9dff-e205-4bc764c67c29@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: unconstify equivalent for volatile  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 2019-02-18 16:42, Andres Freund wrote:
> On February 18, 2019 7:39:25 AM PST, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
>> I propose to add an equivalent to unconstify() for volatile.  When
>> working on this, I picked the name unvolatize() mostly as a joke, but
>> it
>> appears it's a real word.  Other ideas?
> 
> Shouldn't we just remove just about all those use of volatile? Basically the only valid use these days is on
sigsetjmpcall sites.
 

So, after some recent cleanups and another one attached here, we're now
down to 1.5 uses of this.  (0.5 because the hunk in pmsignal.c doesn't
have a cast right now, but it would need one if s/MemSet/memset/.)
Those seem legitimate.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Prajwal A V
Дата:
Сообщение: Contribution to Perldoc for TestLib module in Postgres
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: ALTER TABLE on system catalogs