postgresql/src/backend/utils/init
Michael Paquier 3e6741e8dd Fix compilation warning with SerializeClientConnectionInfo()
This function uses an argument named "maxsize" that is only used in
assertions, being set once outside the assertion area.  Recent gcc
versions with -Wunused-but-set-parameter complain about a warning when
building without assertions enabled, because of that.

In order to fix this issue, PG_USED_FOR_ASSERTS_ONLY is added to the
function argument of SerializeClientConnectionInfo(), which is the first
time we are doing so in the tree.  The CI is fine with the change, but
let's see what the buildfarm has to say on the matter.

Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Jacob Champion <jchampion@postgresql.org>
Discussion: https://postgr.es/m/pevajesswhxafjkivoq3yvwxga77tbncghlf3gq5fvchsvfuda@6uivg25sb3nx
Backpatch-through: 16
2025-08-14 16:22:00 +09:00
..
globals.c Increase default vacuum_buffer_usage_limit to 2MB. 2024-04-06 23:12:03 +13:00
Makefile Perform logical replication actions as the table owner. 2023-04-04 11:25:23 -04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
miscinit.c Fix compilation warning with SerializeClientConnectionInfo() 2025-08-14 16:22:00 +09:00
postinit.c Exclude parallel workers from connection privilege/limit checks. 2024-12-28 16:08:50 -05:00
usercontext.c Update copyright for 2024 2024-01-03 20:49:05 -05:00