../src/wcmValidateDevice.c: In function 'wcmPreInitParseOptions':
../src/wcmValidateDevice.c:801:9: warning: declaration of 'b' shadows a 
previous local [-Wshadow]
../src/wcmValidateDevice.c:708:22: warning: shadowed declaration is here 
[-Wshadow]

Signed-off-by: Jason Gerecke <killert...@gmail.com>
---
 src/wcmValidateDevice.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
index 8eadfdb..119539d 100644
--- a/src/wcmValidateDevice.c
+++ b/src/wcmValidateDevice.c
@@ -704,7 +704,7 @@ Bool wcmPreInitParseOptions(InputInfoPtr pInfo, Bool 
is_primary,
 {
        WacomDevicePtr  priv = (WacomDevicePtr)pInfo->private;
        WacomCommonPtr  common = priv->common;
-       char            *s, b[12];
+       char            *s;
        int             i;
        WacomToolPtr    tool = NULL;
        int             tpc_button_is_on;
@@ -921,6 +921,7 @@ Bool wcmPreInitParseOptions(InputInfoPtr pInfo, Bool 
is_primary,
 
        for (i=0; i<WCM_MAX_BUTTONS; i++)
        {
+               char b[12];
                sprintf(b, "Button%d", i+1);
                priv->button[i] = xf86SetIntOption(pInfo->options, b, 
priv->button[i]);
        }
-- 
1.7.10.2


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to