Add macro to cast away volatile without allowing changes to underlying type
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 25 Mar 2019 08:35:29 +0000 (09:35 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 25 Mar 2019 08:37:03 +0000 (09:37 +0100)
commit481018f2804065cb5ed1cde75b7c0596aeef959a
tree045013c91eb4fe8747a7b4ab0a5e36cd44d3d078
parent572e3e6634e55accf95e2bcfb1340019c86a21dc
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
src/backend/postmaster/pgstat.c
src/backend/storage/ipc/pmsignal.c
src/include/c.h