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
This commit is contained in:
parent
cf303e5baa
commit
bb044732c6
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
void spline(double x, double y, double n, ofloat *p, int attr, double ddval)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
double x1, y1, x2, y2;
|
double x1, y1;
|
||||||
|
|
||||||
printf("<path d=\"M %.3f %.3f", xconv(x), yconv(y));
|
printf("<path d=\"M %.3f %.3f", xconv(x), yconv(y));
|
||||||
x1 = 0;
|
x1 = 0;
|
||||||
y1 = 0;
|
y1 = 0;
|
||||||
for (i = 0; i < 2 * n; i += 2) {
|
for (i = 0; i < 2 * n; i += 2) {
|
||||||
x2 = x1;
|
|
||||||
y2 = y1;
|
|
||||||
x1 = x;
|
x1 = x;
|
||||||
y1 = y;
|
y1 = y;
|
||||||
x += p[i];
|
x += p[i];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue