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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: unused-but-set-variable warning on REL_13_STABLE
Date: 2024-12-09 19:39:30
Message-ID: 4113325.1733773170@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Nathan Bossart <nathandbossart(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2024-12-09 19:52:03 Re: Remove dependence on integer wrapping
Previous Message Nathan Bossart 2024-12-09 19:16:38 unused-but-set-variable warning on REL_13_STABLE