Re: Annoying warning in SerializeClientConnectionInfo

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Jacob Champion <jacob.champion@enterprisedb.com>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org, Andy Fan <zhihuifan1213@163.com>
Date: 2025-08-14T07:23:46Z
Lists: pgsql-hackers
On Wed, Aug 13, 2025 at 08:30:19AM -0700, Jacob Champion wrote:
> On Wed, Aug 13, 2025 at 8:28 AM Andres Freund <andres@anarazel.de> wrote:
>> I think we shouldn't add the attribute to the declaration, just to the
>> function. The caller doesn't need to know that it's unused, it's purely a
>> question of the specific implementation that the attribute is unused.
>
> +1

Okay, done so only in the function, then.
--
Michael

Commits

  1. Fix compilation warning with SerializeClientConnectionInfo()