[PATCH 02/14] exa: Fix -Wshadow warning

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


There's an int ret in the containing scope.  Its value never escapes the
function, we're just using it to check return values from callees.

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

diff --git a/exa/exa_render.c b/exa/exa_render.c
index 172e2b5..3f332f7 100644
--- a/exa/exa_render.c
+++ b/exa/exa_render.c
@@ -915,7 +915,6 @@ exaComposite(CARD8 op,
             if (!pSrc->repeat && xSrc >= 0 && ySrc >= 0 &&
                 (xSrc + width <= pSrc->pDrawable->width) &&
                 (ySrc + height <= pSrc->pDrawable->height)) {
-                Bool ret;
 
                 xDst += pDst->pDrawable->x;
                 yDst += pDst->pDrawable->y;
-- 
1.8.4.2



More information about the xorg-devel mailing list