]> granicus.if.org Git - postgresql/commit
Quieten warnings about unused variables
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 21 Sep 2017 12:41:14 +0000 (08:41 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 21 Sep 2017 12:41:14 +0000 (08:41 -0400)
commit28ae524bbf865d23eb10f6ae1b996d59dcc30e4e
treee8fed3c6e1086a50ac0149fae3f15ef742b08057
parent9140cf8269b0c4ae002b2748d93979d535891311
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
src/backend/optimizer/path/costsize.c