[PATCH xf86-video-siliconmotion 1/4] Fix shadow compiler warning
Julien Cristau
jcristau at debian.org
Fri May 8 04:59:21 PDT 2015
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 at debian.org>
---
src/smi_video.c | 8 ++++----
1 file 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");
}
}
--
2.1.4
More information about the xorg-devel
mailing list