mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +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:
parent
8af2565248
commit
d360e3cc60
@ -57,7 +57,7 @@ typedef struct PendingWrite
|
|||||||
/*
|
/*
|
||||||
* Bulk writer state for one relation fork.
|
* Bulk writer state for one relation fork.
|
||||||
*/
|
*/
|
||||||
typedef struct BulkWriteState
|
struct BulkWriteState
|
||||||
{
|
{
|
||||||
/* Information about the target relation we're writing */
|
/* Information about the target relation we're writing */
|
||||||
SMgrRelation smgr;
|
SMgrRelation smgr;
|
||||||
@ -75,7 +75,7 @@ typedef struct BulkWriteState
|
|||||||
XLogRecPtr start_RedoRecPtr;
|
XLogRecPtr start_RedoRecPtr;
|
||||||
|
|
||||||
MemoryContext memcxt;
|
MemoryContext memcxt;
|
||||||
} BulkWriteState;
|
};
|
||||||
|
|
||||||
static void smgr_bulk_flush(BulkWriteState *bulkstate);
|
static void smgr_bulk_flush(BulkWriteState *bulkstate);
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#include "storage/smgr.h"
|
#include "storage/smgr.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
|
|
||||||
|
/* Bulk writer state, contents are private to bulk_write.c */
|
||||||
typedef struct BulkWriteState BulkWriteState;
|
typedef struct BulkWriteState BulkWriteState;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user