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-00000000nrr-1rYR@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_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f13dbbf753524fe2421e310d0b5a3e85fb38ab5e

Modified Files
--------------
src/backend/utils/cache/syscache.c                  | 2 +-
src/test/modules/test_resowner/test_resowner_many.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1x94ox-00000000nrr-1rYR@gemulon.postgresql.org>
Permalink:  ../E1x94ox-00000000nrr-1rYR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1x94ox-00000000nrr-1rYR@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-00000000nrr-1rYR@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