fix gcc 4.7 warnings (thanks Tuncer Ayaz)

R=rsc
http://codereview.appspot.com/6744053
This commit is contained in:
Russ Cox 2012-10-20 13:36:52 -04:00
parent 53527a6e78
commit 220c15d2b7
14 changed files with 9 additions and 40 deletions

View file

@ -102,12 +102,10 @@ rowadd(Row *row, Column *c, int x)
void
rowresize(Row *row, Rectangle r)
{
int i, dx, odx, deltax;
int i, deltax;
Rectangle or, r1, r2;
Column *c;
dx = Dx(r);
odx = Dx(row->r);
or = row->r;
deltax = r.min.x - or.min.x;
row->r = r;

View file

@ -181,7 +181,7 @@ wintaglines(Window *w, Rectangle r)
int
winresize(Window *w, Rectangle r, int safe, int keepextra)
{
int oy, y, mouseintag, mouseinbody, tagresized;
int oy, y, mouseintag, mouseinbody;
Point p;
Rectangle r1;
@ -203,9 +203,7 @@ winresize(Window *w, Rectangle r, int safe, int keepextra)
/* If needed, resize & redraw tag. */
y = r1.max.y;
tagresized = 0;
if(!safe || !w->tagsafe || !eqrect(w->tag.all, r1)){
tagresized = 1;
textresize(&w->tag, r1, TRUE);
y = w->tag.fr.r.max.y;
windrawbutton(w);