| From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Silence unused variable compiler warning |
| Date: | 2017-03-13 22:03:24 |
| Message-ID: | E1cnY3o-00038H-FA@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/a9c074ba7ec2827832c2f5e2fa0de16bf4851b9b
Modified Files
--------------
src/backend/optimizer/path/costsize.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2017-03-13 23:06:33 | pgsql: Fix busted markup. |
| Previous Message | Tom Lane | 2017-03-13 21:14:51 | pgsql: Add a "void *" passthrough pointer for psqlscan.l's callback fun |