diff options
| author | Tom Lane | 2015-02-21 06:46:43 +0000 |
|---|---|---|
| committer | Tom Lane | 2015-02-21 06:46:43 +0000 |
| commit | f2874feb7c4e71200539c0287544eeebd8fcb3d4 (patch) | |
| tree | 27c53b200f890ce2d568cd12674f93644678e3eb /src/include | |
| parent | 33b2a2c97f3dd4cf8bbc2c020e34129886367b72 (diff) | |
Some more FLEXIBLE_ARRAY_MEMBER fixes.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/brin_page.h | 7 | ||||
| -rw-r--r-- | src/include/replication/slot.h | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/include/access/brin_page.h b/src/include/access/brin_page.h index d8fa190912..44ce5f6d1a 100644 --- a/src/include/access/brin_page.h +++ b/src/include/access/brin_page.h @@ -56,7 +56,12 @@ typedef struct BrinMetaPageData /* Definitions for revmap pages */ typedef struct RevmapContents { - ItemPointerData rm_tids[1]; /* really REVMAP_PAGE_MAXITEMS */ + /* + * This array will fill all available space on the page. It should be + * declared [FLEXIBLE_ARRAY_MEMBER], but for some reason you can't do that + * in an otherwise-empty struct. + */ + ItemPointerData rm_tids[1]; } RevmapContents; #define REVMAP_CONTENT_SIZE \ diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h index d22963d030..a4001360c4 100644 --- a/src/include/replication/slot.h +++ b/src/include/replication/slot.h @@ -130,6 +130,10 @@ typedef struct ReplicationSlot */ typedef struct ReplicationSlotCtlData { + /* + * This array should be declared [FLEXIBLE_ARRAY_MEMBER], but for some + * reason you can't do that in an otherwise-empty struct. + */ ReplicationSlot replication_slots[1]; } ReplicationSlotCtlData; |
