From 924cf10bfe8443974725c4bacd304b50494ab407 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 28 Aug 2026 23:10:47 +0200 Subject: [PATCH 3/5] Remove unused global variable [pg_dump] src/bin/pg_dump/pg_dump_sort.c:160:15: error: variable 'preDataBoundId' set but not used [-Werror,-Wunused-but-set-global] This was apparently never used (initial commit a1ef01fe163). --- src/bin/pg_dump/pg_dump_sort.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/pg_dump/pg_dump_sort.c b/src/bin/pg_dump/pg_dump_sort.c index 03e5c1c1116..3496303932b 100644 --- a/src/bin/pg_dump/pg_dump_sort.c +++ b/src/bin/pg_dump/pg_dump_sort.c @@ -157,7 +157,6 @@ static const int dbObjectTypePriority[] = StaticAssertDecl(lengthof(dbObjectTypePriority) == NUM_DUMPABLE_OBJECT_TYPES, "array length mismatch"); -static DumpId preDataBoundId; static DumpId postDataBoundId; @@ -569,7 +568,6 @@ sortDumpableObjects(DumpableObject **objs, int numObjs, * Saving the boundary IDs in static variables is a bit grotty, but seems * better than adding them to parameter lists of subsidiary functions. */ - preDataBoundId = preBoundaryId; postDataBoundId = postBoundaryId; ordering = pg_malloc_array(DumpableObject *, numObjs); -- 2.55.0