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 */
|
/* multi-sort */
|
||||||
typedef struct MultiSortSupportData
|
typedef struct MultiSortSupportData
|
||||||
{
|
{
|
||||||
int ndims; /* number of dimensions supported by the */
|
int ndims; /* number of dimensions */
|
||||||
SortSupportData ssup[1]; /* sort support data for each dimension */
|
/* sort support data for each dimension: */
|
||||||
|
SortSupportData ssup[FLEXIBLE_ARRAY_MEMBER];
|
||||||
} MultiSortSupportData;
|
} MultiSortSupportData;
|
||||||
|
|
||||||
typedef MultiSortSupportData *MultiSortSupport;
|
typedef MultiSortSupportData *MultiSortSupport;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user