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

Signed-off-by: Nicolas Kaiser <[email protected]>
---
 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
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to