From 8f3d347423c94040b600e80961d547e3ca0a0190 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 28 Aug 2026 23:10:47 +0200 Subject: [PATCH v2 3/6] 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). Discussion: https://www.postgresql.org/message-id/flat/eb013f9d-2247-444e-8815-9d17b4ce78e7%40eisentraut.org --- 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 5b3ea0f2a18..4f3469d4396 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