]> granicus.if.org Git - postgresql/commit
Silence unused variable compiler warning
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 13 Mar 2017 21:54:35 +0000 (18:54 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 13 Mar 2017 22:02:38 +0000 (19:02 -0300)
commita9c074ba7ec2827832c2f5e2fa0de16bf4851b9b
tree19a92d183f87aa776e22dfe97db495a936e878c3
parent895e36bb3f36fdb7ec8e573be1a20d104fac820b
Silence unused variable compiler warning

Fallout from fcec6caafa2: mark a variable in
set_tablefunc_size_estimates as used for asserts only.

Also, the planner_rte_fetch() call is pointless with assertions
disabled, so enclose it in a USE_ASSERT_CHECKING #ifdef; fix the same
problem in set_subquery_size_estimates().

First problem noted by David Rowley, whose compiler is noisier than mine
in this regard.
src/backend/optimizer/path/costsize.c