Re: unused-but-set-variable warning on REL_13_STABLE

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2024-12-09T19:39:30Z
Lists: pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes:
> Adding PG_USED_FOR_ASSERTS_ONLY (as in the attached patch) seems sufficient
> to suppress this warning.  On newer versions, this variable is used for
> more than assertions, so the patch only needs to be applied to v13.  Since
> this is trivial, I plan to commit it shortly.

LGTM

			regards, tom lane



Commits

  1. Fix unused-but-set-variable compiler warning in reorderbuffer.c.