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

Peter Eisentraut <peter@eisentraut.org>

Commit: 481018f2804065cb5ed1cde75b7c0596aeef959a
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-03-25T08:37:03Z
Releases: 12.0
Add macro to cast away volatile without allowing changes to underlying type

This adds unvolatize(), which works just like unconstify() but for volatile.

Discussion: https://www.postgresql.org/message-id/flat/7a5cbea7-b8df-e910-0f10-04014bcad701%402ndquadrant.com

Files

PathChange+/−
src/backend/postmaster/pgstat.c modified +1 −1
src/backend/storage/ipc/pmsignal.c modified +1 −1
src/include/c.h modified +7 −1

Discussion