Silence unused variable compiler warning

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: a9c074ba7ec2827832c2f5e2fa0de16bf4851b9b
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2017-03-13T22:02:38Z
Releases: 10.0
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.

Files

PathChange+/−
src/backend/optimizer/path/costsize.c modified +5 −1