[PATCH xf86-video-mga 6/9] hide conditionally used variable in MGACopyILOAD

Nicolas Kaiser nikai at nikai.net
Wed Jun 8 02:03:41 PDT 2011


Silence compile warning
src/mga_video.c: In function 'MGACopyILOAD':
src/mga_video.c:1801: warning: unused variable 'k'

Signed-off-by: Nicolas Kaiser <nikai at nikai.net>
---
 src/mga_video.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mga_video.c b/src/mga_video.c
index f31ed69..afa3453 100644
--- a/src/mga_video.c
+++ b/src/mga_video.c
@@ -1797,7 +1797,7 @@ static void MGACopyILOAD(
     CARD32 *fb_ptr;
     CARD8  *ubuf, *vbuf;
     CARD32 *pu, *pv;
-    int k,l;
+    int l;
     short clip_x1, clip_x2, tmp_w;
 
 #ifdef DEBUG_MGA2164
@@ -1928,6 +1928,8 @@ static void MGACopyILOAD(
 	    memcpy(fb_ptr, buf+src_x*2, src_w*2);
 	    fb_ptr+=src_w*2;
 #else
+	    int k;
+
 	    CARD32 *tsp=(CARD32 *)(buf+src_x*2);
 	    WAITFIFO(pMga->FifoSize/4);
 	    for(k=src_w/8;k;k--) {
-- 
1.7.5.3


More information about the xorg-devel mailing list