Commit dde7fb78 authored by Tom Lane's avatar Tom Lane

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.
parent dbb98412
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment