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 ...@@ -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;
......
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