unconstify equivalent for volatile

Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-02-18T15:39:25Z
Lists: pgsql-hackers

Attachments

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?

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

Commits

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

  2. Initialize structure at declaration