summaryrefslogtreecommitdiff
path: root/test/unittest_circles.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-02-21 16:51:20 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-02-21 16:51:20 +0100
commit570a05a33c9dc42a16caa5a1a11cf34d4df1c1f9 (patch)
tree8af5caf4996ead1211c574a2024a804d2ba1f288 /test/unittest_circles.cxx
parent2de8f8579cdaa66c930381bcc2e894ff8cbece69 (diff)
Fix compiler warning [-Wunused-but-set-variable]
Diffstat (limited to 'test/unittest_circles.cxx')
-rw-r--r--test/unittest_circles.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/unittest_circles.cxx b/test/unittest_circles.cxx
index 9f919be60..b816a4b6d 100644
--- a/test/unittest_circles.cxx
+++ b/test/unittest_circles.cxx
@@ -40,7 +40,6 @@ void arc(int xi, int yi, int w, int h, double a1, double a2)
int i, segs = circ * (a2-a1) / 100;
if (segs<3) segs = 3;
- int px, py;
a1 = a1/180*M_PI;
a2 = a2/180*M_PI;
double step = (a2-a1)/segs;
@@ -49,11 +48,9 @@ void arc(int xi, int yi, int w, int h, double a1, double a2)
int ny = y - sin(a1)*ry;
fl_point(nx, ny);
for (i=segs; i>0; i--) {
- a1+=step;
- px = nx; py = ny;
+ a1 += step;
nx = x + cos(a1)*rx;
ny = y - sin(a1)*ry;
- //fl_line(px, py, nx, ny);
fl_point(nx, ny);
}
}