From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix unused-but-set-variable compiler warning in reorderbuffer.c.
Date: Mon, 09 Dec 2024 22:26:39 +0000
Message-ID: <E1tKmD8-001wOD-Vl@gemulon.postgresql.org> (raw)
Fix unused-but-set-variable compiler warning in reorderbuffer.c.
On v13, this variable is only used for an assertion, so adding
PG_USED_FOR_ASSERTS_ONLY is sufficient to suppress this warning on
builds with assertions disabled. Older versions are unsupported,
and newer versions use the variable for more than the assertion, so
this patch only needs to be applied to REL_13_STABLE.
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/Z1dCFnzrP24O8WNR%40nathan
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/0fbcb9da181452e236b5aca6bf00c20ebcd7ec6b
Modified Files
--------------
src/backend/replication/logical/reorderbuffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix unused-but-set-variable compiler warning in reorderbuffer.c.
In-Reply-To: <E1tKmD8-001wOD-Vl@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