git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c880cf2)
Fix redefinition of typedef.
2024年9月16日 21:33:50 +0000 (16:33 -0500)
2024年9月16日 21:33:50 +0000 (16:33 -0500)
Per buildfarm members sifaka and longfin, clang with
-Wtypedef-redefinition warns of a duplicate typedef unless building
with C11.

Oversight in commit 40e2e5e92b.


diff --git a/src/bin/pg_upgrade/task.c b/src/bin/pg_upgrade/task.c
index 701e5ef331e64a1f3d6725b8ffea2ca006b468e6..8ef5d26eb591eb1bd3bd946f194fd46c591edc92 100644 (file)
--- a/src/bin/pg_upgrade/task.c
+++ b/src/bin/pg_upgrade/task.c
@@ -79,12 +79,12 @@ typedef struct UpgradeTaskStep
* This struct is a thin wrapper around an array of steps, i.e.,
* UpgradeTaskStep, plus a PQExpBuffer for all the query strings.
*/
-typedef struct UpgradeTask
+struct UpgradeTask
{
UpgradeTaskStep *steps;
int num_steps;
PQExpBuffer queries;
-} UpgradeTask;
+};
/*
* The different states for a parallel slot.
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /