summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2015-05-08 13:26:00 +0200
committerJulien Cristau <jcristau@debian.org>2015-05-08 13:26:00 +0200
commit6073828547bdff86d147ab54accb12bc4230d6aa (patch)
treedd9bc0abc0889a17f3aa7662b205a831d1cd1950
parentc31d7f853d7469085f96f1e37923c260884c611c (diff)
Fix shadow compiler warning
smi_video.c: In function 'SetAttrSAA7111': smi_video.c:795:6: warning: declaration of 'i' shadows a parameter [-Wshadow] int i; ^ smi_video.c:723:39: warning: shadowed declaration is here [-Wshadow] SetAttrSAA7111(ScrnInfoPtr pScrn, int i, int value) ^ Signed-off-by: Julien Cristau <jcristau@debian.org>
-rw-r--r--src/smi_video.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/smi_video.c b/src/smi_video.c
index 7900b3e..27df68d 100644
--- a/src/smi_video.c
+++ b/src/smi_video.c
@@ -792,12 +792,12 @@ SetAttrSAA7111(ScrnInfoPtr pScrn, int i, int value)
/* debug: show registers */
{
I2CByte i2c_bytes[32];
- int i;
+ int j;
xf86I2CReadBytes(&(pPort->I2CDev), 0, i2c_bytes, 32);
DEBUG("SAA7111 Registers\n");
- for (i=0; i<32; i++) {
- DEBUG("%02X=%02X ", i, i2c_bytes[i]);
- if ((i&7) == 7) DEBUG("\n");
+ for (j=0; j<32; j++) {
+ DEBUG("%02X=%02X ", j, i2c_bytes[j]);
+ if ((j&7) == 7) DEBUG("\n");
}
}