agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unused global variables
Date: Fri, 11 Sep 2026 16:00:43 +0000
Message-ID: <E1x53gA-00000004SGU-0tG6@gemulon.postgresql.org> (raw)

Remove unused global variables

The new clang 23 has a new warning about set-but-unused
static (internal-linkage) global variables: -Wunused-but-set-global,
which is activated in PostgreSQL builds via -Wall.  This triggers a
few warnings in PostgreSQL code.  This commit removes several such
variables that were either never used or whose last use was removed
some time ago.

Reviewed-by: Andreas Karlsson <andreas@proxel.se>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/eb013f9d-2247-444e-8815-9d17b4ce78e7%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4e108ce790ec68c6721d08c307109e660bfc0cf3

Modified Files
--------------
src/backend/access/transam/xlog.c                   | 10 ----------
src/backend/postmaster/postmaster.c                 |  3 ---
src/bin/pg_dump/pg_dump_sort.c                      |  2 --
src/test/modules/test_resowner/test_resowner_many.c |  6 +-----
4 files changed, 1 insertion(+), 20 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1x53gA-00000004SGU-0tG6@gemulon.postgresql.org>
Permalink:  ../E1x53gA-00000004SGU-0tG6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1x53gA-00000004SGU-0tG6@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove unused global variables
  In-Reply-To: <E1x53gA-00000004SGU-0tG6@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox