Content-Length: 263457 | pFad | http://github.com/postgrespro/postgres/commit/dde7fb7836c7428f79cb3cd88ca5febb802e767e

A6 Use [FLEXIBLE_ARRAY_MEMBER] not [1] in MultiSortSupportData. · postgrespro/postgres@dde7fb7 · GitHub
Skip to content

Commit dde7fb7

Browse files
committed
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.
1 parent dbb9841 commit dde7fb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/include/statistics/extended_stats_internal.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ typedef struct DimensionInfo
4343
/* multi-sort */
4444
typedef struct MultiSortSupportData
4545
{
46-
int ndims; /* number of dimensions supported by the */
47-
SortSupportData ssup[1]; /* sort support data for each dimension */
46+
int ndims; /* number of dimensions */
47+
/* sort support data for each dimension: */
48+
SortSupportData ssup[FLEXIBLE_ARRAY_MEMBER];
4849
} MultiSortSupportData;
4950

5051
typedef MultiSortSupportData *MultiSortSupport;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/dde7fb7836c7428f79cb3cd88ca5febb802e767e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy