Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd360e3c

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 parent8af2565 commitd360e3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎src/backend/storage/smgr/bulk_write.c

Lines changed: 2 additions & 2 deletions
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-
typedefstructBulkWriteState
60+
structBulkWriteState
6161
{
6262
/* Information about the target relation we're writing */
6363
SMgrRelationsmgr;
@@ -75,7 +75,7 @@ typedef struct BulkWriteState
7575
XLogRecPtrstart_RedoRecPtr;
7676

7777
MemoryContextmemcxt;
78-
}BulkWriteState;
78+
};
7979

8080
staticvoidsmgr_bulk_flush(BulkWriteState*bulkstate);
8181

‎src/include/storage/bulk_write.h

Lines changed: 1 addition & 0 deletions
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
typedefstructBulkWriteStateBulkWriteState;
2122

2223
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp