Re: Make use of unvolatize() in vac_truncate_clog() - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Make use of unvolatize() in vac_truncate_clog()
Date
Msg-id aZ3dthiAZ8nP5Cf7@nathan
Whole thread Raw
In response to Make use of unvolatize() in vac_truncate_clog()  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Make use of unvolatize() in vac_truncate_clog()
List 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 by date:

Previous
From: Jacob Champion
Date:
Subject: Re: pgsql: libpq: Grease the protocol by default
Next
From: Jacob Champion
Date:
Subject: Re: pgsql: libpq: Grease the protocol by default