Skip to content

Commit d360e3c

Browse files
committed
Fix compiler warning on typedef redeclaration
bulk_write.c:78:3: error: redefinition of typedef 'BulkWriteState' is a C11 feature [-Werror,-Wtypedef-redefinition] } BulkWriteState; ^ ../../../../src/include/storage/bulk_write.h:20:31: note: previous definition is here typedef struct BulkWriteState BulkWriteState; ^ 1 error generated. Per buildfarm animals 'sifaka' and 'longfin'. Discussion: https://www.postgresql.org/message-id/9e1f63c3-ef16-404c-b3cb-859a96eaba39@iki.fi
1 parent 8af2565 commit d360e3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/backend/storage/smgr/bulk_write.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ typedef struct PendingWrite
5757
/*
5858
* Bulk writer state for one relation fork.
5959
*/
60-
typedef struct BulkWriteState
60+
struct BulkWriteState
6161
{
6262
/* Information about the target relation we're writing */
6363
SMgrRelation smgr;
@@ -75,7 +75,7 @@ typedef struct BulkWriteState
7575
XLogRecPtr start_RedoRecPtr;
7676

7777
MemoryContext memcxt;
78-
} BulkWriteState;
78+
};
7979

8080
static void smgr_bulk_flush(BulkWriteState *bulkstate);
8181

src/include/storage/bulk_write.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "storage/smgr.h"
1818
#include "utils/rel.h"
1919

20+
/* Bulk writer state, contents are private to bulk_write.c */
2021
typedef struct BulkWriteState BulkWriteState;
2122

2223
/*

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