pgsql: pg_ctl: Silence warnings about unused global variables

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_ctl: Silence warnings about unused global variables
Date: 2026-09-11 18:01:45
Message-ID: E1x55ZI-00000004T5u-0uG8@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)proxel(dot)se>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/flat/eb013f9d-2247-444e-8815-9d17b4ce78e7%40eisentraut.org

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3317dc47241dca90466650d36a0cad40c97bb0f7

Modified Files
--------------
src/bin/pg_ctl/pg_ctl.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2026-09-11 18:55:54 pgsql: Remove unused global variables
Previous Message Masahiko Sawada 2026-09-11 17:55:19 pgsql: Fix logical decoding to ignore updates without a new tuple.