Re: unconstify equivalent for volatile

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-02-19T16:48:16Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> The real reason why variables commonly need to be volatile when used in
> signal handlers is not the signal handler side, but the normal code flow
> side.

Yeah, exactly.  You have not explained why it'd be safe to ignore that.

			regards, tom lane


Commits

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

  2. Initialize structure at declaration