Commit 60738285 authored by Julien Cristau's avatar Julien Cristau
Browse files

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's avatarJulien Cristau <>
parent c31d7f85
......@@ -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");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment