Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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

+1
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)