From 9bb4a549ca58cbb03f0313c47aea546080ac5cff Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Fri, 24 Oct 2014 17:24:04 -0700 Subject: [PATCH] Silence warnings about unused variables --- geometry.cc | 4 ++-- tile.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/geometry.cc b/geometry.cc index a5405656..30bb95b6 100644 --- a/geometry.cc +++ b/geometry.cc @@ -207,8 +207,8 @@ static draw get_line_intersection(draw p0, draw p1, draw p2, draw p3) { double s2_x = p3.x - p2.x; double s2_y = p3.y - p2.y; - double s, t; - s = (-s1_y * (p0.x - p2.x) + s1_x * (p0.y - p2.y)) / (-s2_x * s1_y + s1_x * s2_y); + double t; + //s = (-s1_y * (p0.x - p2.x) + s1_x * (p0.y - p2.y)) / (-s2_x * s1_y + s1_x * s2_y); t = ( s2_x * (p0.y - p2.y) - s2_y * (p0.x - p2.x)) / (-s2_x * s1_y + s1_x * s2_y); return draw(VT_LINETO, p0.x + (t * s1_x), p0.y + (t * s1_y)); diff --git a/tile.cc b/tile.cc index a84622e7..b4c45434 100644 --- a/tile.cc +++ b/tile.cc @@ -355,7 +355,7 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns double interval = 1; double seq = 0; long long count = 0; - long long along = 0; + //long long along = 0; double accum_area = 0; if (z < basezoom) {