pgsql: Mark variable used only in assertion with PG_USED_FOR_ASSERTS_ON

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Mark variable used only in assertion with PG_USED_FOR_ASSERTS_ON
Date: 2018-07-29 21:15:56
Message-ID: E1fjt2i-0000Le-Bp@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Mark variable used only in assertion with PG_USED_FOR_ASSERTS_ONLY

Perpendicular lines always intersect, so the line_interpt_line() return
value in line_closept_point() was used only in an assertion, triggering
compiler warnings in non-assert builds.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ab87b8fedce3fa77ca0d684a42ecc055f189eb33

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Justin Pryzby 2018-07-29 21:27:19 Re: Fwd: Would like to help with documentation for Postgres 11
Previous Message Peter Geoghegan 2018-07-29 19:45:06 Re: Tips on committing