Mark variable used only in assertion with PG_USED_FOR_ASSERTS_ONLY

Tomas Vondra <tomas.vondra@postgresql.org>

Commit: ab87b8fedce3fa77ca0d684a42ecc055f189eb33
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2018-07-29T21:08:00Z
Releases: 12.0
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.

Files

PathChange+/−
src/backend/utils/adt/geo_ops.c modified +3 −2