From 220c15d2b746878a943f311e6f66b1480e46491d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 20 Oct 2012 13:36:52 -0400 Subject: fix gcc 4.7 warnings (thanks Tuncer Ayaz) R=rsc http://codereview.appspot.com/6744053 --- src/cmd/pic/linegen.c | 3 +-- src/cmd/pic/textgen.c | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/cmd/pic') 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); } -- cgit v1.2.3