From: Paul Ramsey Date: Wed, 5 Jun 2013 21:31:44 +0000 (+0000) Subject: #2315, geography_distance_uncached: variable ‘tolerance’ set but not used X-Git-Tag: 2.1.0beta3~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cca5a0864ff56e7102f02a5d783729e569bcea73;p=postgis #2315, geography_distance_uncached: variable ‘tolerance’ set but not used git-svn-id: http://svn.osgeo.org/postgis/trunk@11531 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/geography_measurement.c b/postgis/geography_measurement.c index 5dec9ffc3..e41f646e3 100644 --- a/postgis/geography_measurement.c +++ b/postgis/geography_measurement.c @@ -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);