pgsql: Quieten warnings about unused variables

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Quieten warnings about unused variables
Date: 2017-09-21 12:51:51
Message-ID: E1dv0xL-0004Ei-5H@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/28ae524bbf865d23eb10f6ae1b996d59dcc30e4e

Modified Files
--------------
src/backend/optimizer/path/costsize.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-09-21 15:46:40 Re: [COMMITTERS] pgsql: Fix bool/int type confusion
Previous Message Robert Haas 2017-09-21 03:42:31 pgsql: Associate partitioning information with each RelOptInfo.