On 07/29/2018 10:57 PM, Tom Lane wrote: > Tomas Vondra <tomas.von...@2ndquadrant.com> writes: >> This should fix it I guess, and it's how we deal with unused return >> values elsewhere. I've considered using USE_ASSERT_CHECKING here, but it >> seems rather ugly with that. I'll wait for Emre's opinion ... > > I think what you want is to mark the variable with > PG_USED_FOR_ASSERTS_ONLY. >
Oh, good idea. I don't think I've ever used that macro and I've completely forgotten about it. Committed that way. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services