[PATCH 01/14] composite: Fix -Wshadow warning

Adam Jackson ajax at redhat.com
Fri Dec 13 15:05:39 PST 2013


Entirely redundant assignment, we're doing exactly the same thing in the
containing block.  Just nuke it.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 composite/compwindow.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/composite/compwindow.c b/composite/compwindow.c
index 0be7a1b..cd5394d 100644
--- a/composite/compwindow.c
+++ b/composite/compwindow.c
@@ -475,7 +475,6 @@ compCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
              * need to be copied to pNewPixmap.
              */
             RegionRec rgnDst;
-            PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin);
             GCPtr pGC;
 
             dx = ptOldOrg.x - pWin->drawable.x;
-- 
1.8.4.2



More information about the xorg-devel mailing list