plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit bb044732c6122cc3ba7c7bc7a44bc2ea762d31b1
parent cf303e5baa13e9c35acb8531260a67d11e5051ab
Author: David du Colombier <0intro@gmail.com>
Date:   Fri,  1 Sep 2017 22:37:59 +0200

svgpic: fix warnings

plsvg.c:291:21: warning: variable ‘y2’ set but not used
plsvg.c:291:17: warning: variable ‘x2’ set but not used

Diffstat:
Msrc/cmd/svgpic/plsvg.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/cmd/svgpic/plsvg.c b/src/cmd/svgpic/plsvg.c @@ -288,14 +288,12 @@ void circle(double x, double y, double r) void spline(double x, double y, double n, ofloat *p, int attr, double ddval) { int i; - double x1, y1, x2, y2; + double x1, y1; printf("<path d=\"M %.3f %.3f", xconv(x), yconv(y)); x1 = 0; y1 = 0; for (i = 0; i < 2 * n; i += 2) { - x2 = x1; - y2 = y1; x1 = x; y1 = y; x += p[i];