diff options
author | Russ Cox <rsc@swtch.com> | 2012-10-20 13:36:52 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2012-10-20 13:36:52 -0400 |
commit | 220c15d2b746878a943f311e6f66b1480e46491d (patch) | |
tree | b3235ff00e75b08680c0db754058ec908e2b2f22 /src/cmd/pic | |
parent | 53527a6e7864f5d681d7140f1403d4d8d42311d5 (diff) | |
download | plan9port-220c15d2b746878a943f311e6f66b1480e46491d.tar.gz plan9port-220c15d2b746878a943f311e6f66b1480e46491d.tar.bz2 plan9port-220c15d2b746878a943f311e6f66b1480e46491d.zip |
fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc
http://codereview.appspot.com/6744053
Diffstat (limited to 'src/cmd/pic')
-rw-r--r-- | src/cmd/pic/linegen.c | 3 | ||||
-rw-r--r-- | src/cmd/pic/textgen.c | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/cmd/pic/linegen.c b/src/cmd/pic/linegen.c index eab268f5..e0db5fc6 100644 --- a/src/cmd/pic/linegen.c +++ b/src/cmd/pic/linegen.c @@ -20,7 +20,7 @@ obj *linegen(int type) double dx[500], dy[500]; int ndxy; double nx, ny; - Attr *ap, *chop_ap[4]; + Attr *ap; nx = curx; ny = cury; @@ -133,7 +133,6 @@ obj *linegen(int type) else chop2 = ap->a_val.f; } - chop_ap[chop++] = ap; break; case FILL: battr |= FILLBIT; diff --git a/src/cmd/pic/textgen.c b/src/cmd/pic/textgen.c index 98dfbb57..082f8ee0 100644 --- a/src/cmd/pic/textgen.c +++ b/src/cmd/pic/textgen.c @@ -7,8 +7,6 @@ obj *textgen(void) int i, sub, nstr, at, with, hset, invis; double xwith, ywith, h, w, x0, y0, x1, y1; obj *p, *ppos; - static double prevh = 0; - static double prevw = 0; Attr *ap; at = with = nstr = hset = invis = 0; @@ -93,8 +91,6 @@ obj *textgen(void) cury = y1; else cury = y0; - prevh = h; - prevw = w; return(p); } |