pgsql: Improve InitShmemAccess() prototype - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Improve InitShmemAccess() prototype
Date
Msg-id E1tFqMd-003ZyB-KR@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve InitShmemAccess() prototype

The code comment said, 'the argument should be declared "PGShmemHeader
*seghdr", but we use void to avoid having to include ipc.h in
shmem.h.'  We can achieve the original goal with a struct forward
declaration.  (ipc.h was also not the correct header file.)

Discussion: https://www.postgresql.org/message-id/flat/cnthxg2eekacrejyeonuhiaezc7vd7o2uowlsbenxqfkjwgvwj@qgzu6eoqrglb

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2a7b2d97171dd39dca7cefb91008a3c84ec003ba

Modified Files
--------------
src/backend/storage/ipc/shmem.c | 13 ++++---------
src/include/storage/shmem.h     |  3 ++-
2 files changed, 6 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Richard Guo
Date:
Subject: pgsql: Fix test case from a8ccf4e93
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Fix C23 compiler warning