Fix unused-but-set-variable compiler warning in reorderbuffer.c.
authorNathan Bossart <[email protected]>
Mon, 9 Dec 2024 22:26:23 +0000 (16:26 -0600)
committerNathan Bossart <[email protected]>
Mon, 9 Dec 2024 22:26:23 +0000 (16:26 -0600)
commit0fbcb9da181452e236b5aca6bf00c20ebcd7ec6b
tree7d1d7a636781ac9e1297d1a553eefbee2c82b7a4
parenta51ec088dbe54c41ecb3178053da8881d0e2452e
Fix unused-but-set-variable compiler warning in reorderbuffer.c.

On v13, this variable is only used for an assertion, so adding
PG_USED_FOR_ASSERTS_ONLY is sufficient to suppress this warning on
builds with assertions disabled.  Older versions are unsupported,
and newer versions use the variable for more than the assertion, so
this patch only needs to be applied to REL_13_STABLE.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/Z1dCFnzrP24O8WNR%40nathan
src/backend/replication/logical/reorderbuffer.c