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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy