mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Use [FLEXIBLE_ARRAY_MEMBER] not [1] in MultiSortSupportData.
This struct seems to have not gotten the word about preferred coding style for variable-length arrays.
This commit is contained in:
parent
dbb984128e
commit
dde7fb7836
@ -43,8 +43,9 @@ typedef struct DimensionInfo
|
||||
/* multi-sort */
|
||||
typedef struct MultiSortSupportData
|
||||
{
|
||||
int ndims; /* number of dimensions supported by the */
|
||||
SortSupportData ssup[1]; /* sort support data for each dimension */
|
||||
int ndims; /* number of dimensions */
|
||||
/* sort support data for each dimension: */
|
||||
SortSupportData ssup[FLEXIBLE_ARRAY_MEMBER];
|
||||
} MultiSortSupportData;
|
||||
|
||||
typedef MultiSortSupportData *MultiSortSupport;
|
||||
|
Loading…
x
Reference in New Issue
Block a user