]> granicus.if.org Git - postgis/commitdiff
#2044, lw_arc_length: warning: variable 'a2' set but not used
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 13 Nov 2012 22:30:27 +0000 (22:30 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 13 Nov 2012 22:30:27 +0000 (22:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10666 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwalgorithm.c

index 1fe230390ca9547d8329d3bda72bdae299d81e17..928ecf98e60eda17cabd0c457745a235d592cd11 100644 (file)
@@ -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? */