aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-02-23 17:39:27 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-02-23 17:39:27 +0200
commitd360e3cc60e37d6d41ee78acf7bd5cb313b978c1 (patch)
tree670ffb58e2c0d6810b72144846fdc07d5f233d4c /src/backend
parent8af256524893987a3e534c6578dd60edfb782a77 (diff)
downloadpostgresql-d360e3cc60e37d6d41ee78acf7bd5cb313b978c1.tar.gz
postgresql-d360e3cc60e37d6d41ee78acf7bd5cb313b978c1.zip
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
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/storage/smgr/bulk_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/smgr/bulk_write.c b/src/backend/storage/smgr/bulk_write.c
index 04a76ec5e36..4a10ece4c39 100644
--- a/src/backend/storage/smgr/bulk_write.c
+++ b/src/backend/storage/smgr/bulk_write.c
@@ -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);