]> granicus.if.org Git - postgis/commitdiff
#2315, geography_distance_uncached: variable ‘tolerance’ set but not used
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 5 Jun 2013 21:31:44 +0000 (21:31 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 5 Jun 2013 21:31:44 +0000 (21:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11531 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geography_measurement.c

index 5dec9ffc3cb72139828621acaa7c727171760126..e41f646e391ae2f51c201b3c6789750fa8767440 100644 (file)
@@ -55,7 +55,7 @@ Datum geography_distance_uncached(PG_FUNCTION_ARGS)
        GSERIALIZED *g1 = NULL;
        GSERIALIZED *g2 = NULL;
        double distance;
-       double tolerance;
+       /* double tolerance; */
        bool use_spheroid;
        SPHEROID s;
 
@@ -64,8 +64,8 @@ Datum geography_distance_uncached(PG_FUNCTION_ARGS)
        g2 = (GSERIALIZED*)PG_DETOAST_DATUM(PG_GETARG_DATUM(1));
 
        /* Read our tolerance value. */
-       tolerance = PG_GETARG_FLOAT8(2);
-
+       /* tolerance = PG_GETARG_FLOAT8(2); */
+    
        /* Read our calculation type. */
        use_spheroid = PG_GETARG_BOOL(3);