fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc http://codereview.appspot.com/6744053
This commit is contained in:
parent
53527a6e78
commit
220c15d2b7
14 changed files with 9 additions and 40 deletions
|
|
@ -56,7 +56,7 @@ _xgetxdata(Memimage *m, Rectangle r)
|
|||
void
|
||||
_xputxdata(Memimage *m, Rectangle r)
|
||||
{
|
||||
int offset, x, y;
|
||||
int x, y;
|
||||
uchar *p;
|
||||
Point tp, xdelta, delta;
|
||||
Xmem *xm;
|
||||
|
|
@ -69,10 +69,6 @@ _xputxdata(Memimage *m, Rectangle r)
|
|||
|
||||
xi = xm->xi;
|
||||
gc = m->chan==GREY1 ? _x.gccopy0 : _x.gccopy;
|
||||
if(m->depth == 24)
|
||||
offset = r.min.x & 3;
|
||||
else
|
||||
offset = r.min.x & (31/m->depth);
|
||||
|
||||
delta = subpt(r.min, m->r.min);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue