Fix some compiler warnings in aset.c and generation.c

David Rowley <drowley@postgresql.org>

Commit: b82557ecc2ebbf649142740a1c5ce8d19089f620
Author: David Rowley <drowley@postgresql.org>
Date: 2023-01-04T23:56:17Z
Releases: 16.0
Fix some compiler warnings in aset.c and generation.c

This fixes a couple of unused variable warnings that could be seen when
compiling with MEMORY_CONTEXT_CHECKING but not USE_ASSERT_CHECKING.
Defining MEMORY_CONTEXT_CHECKING without asserts is a little unusual,
however, we shouldn't be producing any warnings from such a build.

Author: Richard Guo
Discussion: https://postgr.es/m/CAMbWs4_D-vgLEh7eO47p=73u1jWO78NWf6Qfv1FndY1kG-Q-jA@mail.gmail.com

Files

PathChange+/−
src/backend/utils/mmgr/aset.c modified +1 −3
src/backend/utils/mmgr/generation.c modified +6 −3

Discussion