Quieten warnings about unused variables

Andrew Dunstan <andrew@dunslane.net>

Commit: 28ae524bbf865d23eb10f6ae1b996d59dcc30e4e
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2017-09-21T12:41:14Z
Releases: 11.0
Quieten warnings about unused variables

These variables are only ever written to in assertion-enabled builds,
and the latest Microsoft compilers complain about such variables in
non-assertion-enabled builds.

Apparently they don't worry so much about variables that are written to
but not read from, so most of our PG_USED_FOR_ASSERTS_ONLY variables
don't cause the problem.

Discussion: https://postgr.es/m/7800.1505950322@sss.pgh.pa.us

Files

PathChange+/−
src/backend/optimizer/path/costsize.c modified +2 −11

Discussion