mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Use FLEXIBLE_ARRAY_MEMBER in some more places.
Fix a batch of structs that are only visible within individual .c files. Michael Paquier
This commit is contained in:
2
src/backend/utils/cache/typcache.c
vendored
2
src/backend/utils/cache/typcache.c
vendored
@ -93,7 +93,7 @@ typedef struct TypeCacheEnumData
|
||||
Oid bitmap_base; /* OID corresponding to bit 0 of bitmapset */
|
||||
Bitmapset *sorted_values; /* Set of OIDs known to be in order */
|
||||
int num_values; /* total number of values in enum */
|
||||
EnumItem enum_values[1]; /* VARIABLE LENGTH ARRAY */
|
||||
EnumItem enum_values[FLEXIBLE_ARRAY_MEMBER];
|
||||
} TypeCacheEnumData;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user