agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_ctl: Silence warnings about unused global variables
Date: Fri, 11 Sep 2026 19:33:21 +0000
Message-ID: <E1x56zw-00000004Tih-0wNj@gemulon.postgresql.org> (raw)
pg_ctl: Silence warnings about unused global variables
Several global variables are only used in Windows build. This causes
-Wunused-but-set-global warnings that the new clang 23 enables via
-Wall.
This commit marks these with an unused attribute to silence the
warnings.
(In the master branch, this is addressed differently, but for
backpatching, this just silences the warnings without any behavior
change.)
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
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/ddc22e8084918807a6c5e258bbc5c474a85ea274
Modified Files
--------------
src/bin/pg_ctl/pg_ctl.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
view thread (6+ messages)
Message-ID: <E1x56zw-00000004Tih-0wNj@gemulon.postgresql.org>
Permalink: ../E1x56zw-00000004Tih-0wNj@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1x56zw-00000004Tih-0wNj@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: pg_ctl: Silence warnings about unused global variables
In-Reply-To: <E1x56zw-00000004Tih-0wNj@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