aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/page
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-20 13:36:52 -0400
committerRuss Cox <rsc@swtch.com>2012-10-20 13:36:52 -0400
commit220c15d2b746878a943f311e6f66b1480e46491d (patch)
treeb3235ff00e75b08680c0db754058ec908e2b2f22 /src/cmd/page
parent53527a6e7864f5d681d7140f1403d4d8d42311d5 (diff)
downloadplan9port-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/page')
-rw-r--r--src/cmd/page/rotate.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd/page/rotate.c b/src/cmd/page/rotate.c
index 48087348..3ac83a1f 100644
--- a/src/cmd/page/rotate.c
+++ b/src/cmd/page/rotate.c
@@ -85,21 +85,18 @@ void
interlace(Image *im, Image *tmp, int axis, int n, Image *mask, int gran)
{
Point p0, p1;
- Rectangle r0, r1;
+ Rectangle r0;
r0 = im->r;
- r1 = im->r;
switch(axis) {
case Xaxis:
r0.max.x = n;
- r1.min.x = n;
p0 = (Point){gran, 0};
p1 = (Point){-gran, 0};
break;
case Yaxis:
default:
r0.max.y = n;
- r1.min.y = n;
p0 = (Point){0, gran};
p1 = (Point){0, -gran};
break;