From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Silence unused-but-set-variable warnings with MEMORY_CONTEXT_CHE
Date: Wed, 18 Nov 2026 14:25:13 +0000
Message-ID: <E1xTgb2-00000000FTf-3EGR@gemulon.postgresql.org> (raw)
Silence unused-but-set-variable warnings with MEMORY_CONTEXT_CHECKING
These variables were only used with assertions enabled. If you
compiled with assertions disabled and MEMORY_CONTEXT_CHECKING enabled,
the compiler would warn about that (-Wunused-but-set-variable).
USE_VALGRIND implies MEMORY_CONTEXT_CHECKING, so USE_VALGRIND without
assertions was another way to see it.
Author: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/ajZD8TCSIYPJgCNJ@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0cf2d43d326d78e039a984e53724b5c9d2439e99
Modified Files
--------------
src/backend/utils/mmgr/aset.c | 2 +-
src/backend/utils/mmgr/bump.c | 2 +-
src/backend/utils/mmgr/generation.c | 2 +-
src/backend/utils/mmgr/slab.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Silence unused-but-set-variable warnings with MEMORY_CONTEXT_CHE
In-Reply-To: <E1xTgb2-00000000FTf-3EGR@gemulon.postgresql.org>
References: <E1xTgb2-00000000FTf-3EGR@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox