mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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
This commit is contained in:
@ -134,7 +134,7 @@ PMSignalShmemInit(void)
|
||||
|
||||
if (!found)
|
||||
{
|
||||
MemSet(PMSignalState, 0, PMSignalShmemSize());
|
||||
MemSet(unvolatize(PMSignalData *, PMSignalState), 0, PMSignalShmemSize());
|
||||
PMSignalState->num_child_flags = MaxLivePostmasterChildren();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user