Re: unconstify equivalent for volatile

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: pgsql-hackers@lists.postgresql.org,Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-02-18T15:42:33Z
Lists: pgsql-hackers
Hi,

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 sigsetjmp call sites.

Andres

Andres
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Commits

  1. Add macro to cast away volatile without allowing changes to underlying type

  2. Initialize structure at declaration