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: Silence warnings about unused global variables
Date: Tue, 22 Sep 2026 18:02:23 +0000
Message-ID: <E1x94ox-00000000ns4-2Y7o@gemulon.postgresql.org> (raw)

Silence warnings about unused global variables

Similar to commit "Remove unused global variables", silence
-Wunused-but-set-global warnings from clang 23 (included in -Wall).
These are variables that are used in assert-enabled builds only, so
annotate them with PG_USED_FOR_ASSERTS_ONLY.

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5d17c0c02f3074a8273e020e3b9ffa4a41bea325

Modified Files
--------------
src/backend/utils/cache/syscache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



view thread (7+ messages)

Message-ID: <E1x94ox-00000000ns4-2Y7o@gemulon.postgresql.org>
Permalink:  ../E1x94ox-00000000ns4-2Y7o@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1x94ox-00000000ns4-2Y7o@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: Silence warnings about unused global variables
  In-Reply-To: <E1x94ox-00000000ns4-2Y7o@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