aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2025-03-06 03:10:22 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2025-03-06 03:10:22 +0200
commit39de4f157d3ac0b889bb276c2487fe160578f967 (patch)
tree0981ccceae41e6b209a107f8c23496bc5bc18cd7 /src
parent7f7f324eb5a4754ab9fa1c68dfef952555a94d1b (diff)
downloadpostgresql-39de4f157d3ac0b889bb276c2487fe160578f967.tar.gz
postgresql-39de4f157d3ac0b889bb276c2487fe160578f967.zip
Fix compiler warnings about typedef redefinitions
Clang with -Wtypedef-redefinition produced warnings: src/include/storage/latch.h:122:3: error: redefinition of typedef 'Latch' is a C11 feature [-Werror,-Wtypedef-redefinition] Per buildfarm
Diffstat (limited to 'src')
-rw-r--r--src/include/storage/waiteventset.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/storage/waiteventset.h b/src/include/storage/waiteventset.h
index 9947491b619..aa65b7a35e7 100644
--- a/src/include/storage/waiteventset.h
+++ b/src/include/storage/waiteventset.h
@@ -70,7 +70,7 @@ typedef struct WaitEvent
/* forward declarations to avoid exposing waiteventset.c implementation details */
typedef struct WaitEventSet WaitEventSet;
-typedef struct Latch Latch;
+struct Latch;
/*
* prototypes for functions in waiteventset.c
@@ -81,8 +81,9 @@ extern WaitEventSet *CreateWaitEventSet(ResourceOwner resowner, int nevents);
extern void FreeWaitEventSet(WaitEventSet *set);
extern void FreeWaitEventSetAfterFork(WaitEventSet *set);
extern int AddWaitEventToSet(WaitEventSet *set, uint32 events, pgsocket fd,
- Latch *latch, void *user_data);
-extern void ModifyWaitEvent(WaitEventSet *set, int pos, uint32 events, Latch *latch);
+ struct Latch *latch, void *user_data);
+extern void ModifyWaitEvent(WaitEventSet *set, int pos, uint32 events,
+ struct Latch *latch);
extern int WaitEventSetWait(WaitEventSet *set, long timeout,
WaitEvent *occurred_events, int nevents,
uint32 wait_event_info);