1
0
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:
Heikki Linnakangas 2024-02-23 17:39:27 +02:00
parent 8af2565248
commit d360e3cc60
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -17,6 +17,7 @@
#include "storage/smgr.h"
#include "utils/rel.h"
/* Bulk writer state, contents are private to bulk_write.c */
typedef struct BulkWriteState BulkWriteState;
/*