Re: Annoying warning in SerializeClientConnectionInfo

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Annoying warning in SerializeClientConnectionInfo
Дата
Msg-id ru22zkposrpvopmgkaejafl2izv4jzc7jr6f6hh3efrnucivkp@idaumq7jjhkm
обсуждение исходный текст
Ответ на Re: Annoying warning in SerializeClientConnectionInfo  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Annoying warning in SerializeClientConnectionInfo
Список pgsql-hackers
Hi,

On 2025-08-13 12:54:27 +0900, Michael Paquier wrote:
> > I think the PG_USED_FOR_ASSERTS_ONLY fix is preferable for backport,
> > so I don't want to get in the way of that approach.
> 
> The attached has been working for me.  Thoughts?

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.

Greetings,

Andres Freund



В списке pgsql-hackers по дате отправления: