Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> I tried a non-cassert compile on a machine that has a pickier compiler
> than my laptop, and got:
> costsize.c: In function ‘set_tablefunc_size_estimates’:
> costsize.c:4574:17: error: variable ‘rte’ set but not used
> [-Werror=unused-but-set-variable]
> That appears to be a legitimate gripe. Perhaps:
I think PG_USED_FOR_ASSERTS_ONLY would be a better solution. It's
only happenstance that the function currently uses the RTE just
for this; if it grows another use, your approach would be harder
to clean up.
regards, tom lane