diff options
author | Nathan Bossart <nathan@postgresql.org> | 2024-09-16 16:33:50 -0500 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2024-09-16 16:33:50 -0500 |
commit | 1bbf1e2f1a077905037272cd4767e952f34c02b3 (patch) | |
tree | ac7403456096918c1a7faa91bca68d095eaa6816 /src | |
parent | c880cf258864cdb355ce28438ec31a2405c20941 (diff) | |
download | postgresql-1bbf1e2f1a077905037272cd4767e952f34c02b3.tar.gz postgresql-1bbf1e2f1a077905037272cd4767e952f34c02b3.zip |
Fix redefinition of typedef.
Per buildfarm members sifaka and longfin, clang with
-Wtypedef-redefinition warns of a duplicate typedef unless building
with C11.
Oversight in commit 40e2e5e92b.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_upgrade/task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_upgrade/task.c b/src/bin/pg_upgrade/task.c index 701e5ef331e..8ef5d26eb59 100644 --- 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. |