pgsql: Mark variable used only in assertion withPG_USED_FOR_ASSERTS_ON - Mailing list pgsql-committers

From Tomas Vondra
Subject pgsql: Mark variable used only in assertion withPG_USED_FOR_ASSERTS_ON
Date
Msg-id E1fjt2i-0000Le-Bp@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tomas Vondra
Date:
Subject: pgsql: Restore handling of -0 in the C field of lines inline_construct
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add ssl_library preset parameter