mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +03:00
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
This commit is contained in:
@@ -57,7 +57,7 @@ typedef struct PendingWrite
|
||||
/*
|
||||
* Bulk writer state for one relation fork.
|
||||
*/
|
||||
typedef struct BulkWriteState
|
||||
struct BulkWriteState
|
||||
{
|
||||
/* Information about the target relation we're writing */
|
||||
SMgrRelation smgr;
|
||||
@@ -75,7 +75,7 @@ typedef struct BulkWriteState
|
||||
XLogRecPtr start_RedoRecPtr;
|
||||
|
||||
MemoryContext memcxt;
|
||||
} BulkWriteState;
|
||||
};
|
||||
|
||||
static void smgr_bulk_flush(BulkWriteState *bulkstate);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user