Re: Make use of unvolatize() in vac_truncate_clog()

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Make use of unvolatize() in vac_truncate_clog()
Дата
Msg-id aZ3dthiAZ8nP5Cf7@nathan
обсуждение исходный текст
Ответ на Make use of unvolatize() in vac_truncate_clog()  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Ответы Re: Make use of unvolatize() in vac_truncate_clog()
Список pgsql-hackers
On Tue, Feb 24, 2026 at 05:08:09PM +0000, Bertrand Drouvot wrote:
> This patch makes use of unvolatize() in vac_truncate_clog().
> 
> Note that it does not remove the warning but moves it to c.h (where unvolatize()
> is defined) but that's consistent with what 481018f2804 did too.

Why is this preferable to marking the function parameter as volatile or
removing the volatile qualifier from the variable?

-- 
nathan



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