1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-21 16:02:15 +03:00

Fix compiler warning/error about typedef redefinitions

Per buildfarm member 'sifaka':

    procsignal.c:87:3: error: redefinition of typedef 'ProcSignalHeader' is a C11 feature [-Werror,-Wtypedef-redefinition]
This commit is contained in:
Heikki Linnakangas
2024-07-29 16:23:30 +03:00
parent 9d9b9d46f3
commit 8bda213ec1

View File

@ -80,11 +80,11 @@ typedef struct
* *
* psh_barrierGeneration is the highest barrier generation in existence. * psh_barrierGeneration is the highest barrier generation in existence.
*/ */
typedef struct ProcSignalHeader struct ProcSignalHeader
{ {
pg_atomic_uint64 psh_barrierGeneration; pg_atomic_uint64 psh_barrierGeneration;
ProcSignalSlot psh_slot[FLEXIBLE_ARRAY_MEMBER]; ProcSignalSlot psh_slot[FLEXIBLE_ARRAY_MEMBER];
} ProcSignalHeader; };
/* /*
* We reserve a slot for each possible ProcNumber, plus one for each * We reserve a slot for each possible ProcNumber, plus one for each