From: Paul Ramsey Date: Tue, 13 Nov 2012 22:30:27 +0000 (+0000) Subject: #2044, lw_arc_length: warning: variable 'a2' set but not used X-Git-Tag: 2.1.0beta2~402 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f81d28526aa43d5c283ae8714b6921f8b0cf19f;p=postgis #2044, lw_arc_length: warning: variable 'a2' set but not used git-svn-id: http://svn.osgeo.org/postgis/trunk@10666 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwalgorithm.c b/liblwgeom/lwalgorithm.c index 1fe230390..928ecf98e 100644 --- a/liblwgeom/lwalgorithm.c +++ b/liblwgeom/lwalgorithm.c @@ -120,7 +120,7 @@ lw_arc_length(const POINT2D *A1, const POINT2D *A2, const POINT2D *A3) POINT2D C; double radius_A, circumference_A; int a2_side, clockwise; - double a1, a2, a3; + double a1, a3; double angle; if ( lw_arc_is_pt(A1, A2, A3) ) @@ -151,7 +151,6 @@ lw_arc_length(const POINT2D *A1, const POINT2D *A2, const POINT2D *A3) /* Angles of each point that defines the arc section */ a1 = atan2(A1->y - C.y, A1->x - C.x); - a2 = atan2(A2->y - C.y, A2->x - C.x); a3 = atan2(A3->y - C.y, A3->x - C.x); /* What's the sweep from A1 to A3? */