tdevdraw: silence unused variable warnings - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 17934beda0895d1b584e09f0253b8205b7fd6de2
 (DIR) parent 5154e54d8b8ee864f31f0774ee590be87a1d6e02
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Fri,  8 Feb 2013 12:46:59 -0500
       
       devdraw: silence unused variable warnings
       
       R=rsc
       https://codereview.appspot.com/7304064
       
       Diffstat:
         M src/cmd/devdraw/x11-draw.c          |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/devdraw/x11-draw.c b/src/cmd/devdraw/x11-draw.c
       t@@ -45,9 +45,9 @@ xdraw(Memdrawparam *par)
                u32int sdval;
                uint m, state;
                Memimage *src, *dst, *mask;
       -        Point dp, mp, sp;
       +        Point dp, mp;
                Rectangle r;
       -        Xmem *xdst, *xmask, *xsrc;
       +        Xmem *xdst, *xmask;
                XGC gc;
        
                if(par->dst->X == nil)
       t@@ -74,11 +74,15 @@ xdraw(Memdrawparam *par)
                 * If no source alpha and an opaque mask, we can just copy
                 * the source onto the destination.  If the channels are the
                 * same and the source is not replicated, XCopyArea works.
       +         *
                 * This is disabled because Ubuntu Precise seems to ship with
                 * a buggy X server that sometimes drops the XCopyArea
                 * requests on the floor.
                m = Simplemask|Fullmask;
                if((state&(m|Replsrc))==m && src->chan==dst->chan && src->X){
       +                Xmem *xsrc;
       +                Point sp;
       +
                        xdst = dst->X;
                        xsrc = src->X;
                        dp = subpt(r.min,       dst->r.min);