[PATCH 1/5] test: fix "redundant declaration of devices" warning

Peter Hutterer peter.hutterer at who-t.net
Tue May 15 00:02:59 PDT 2012


In file included from protocol-xiwarppointer.c:41:0:
protocol-common.h:91:23: warning: redundant redeclaration of ‘devices’
[-Wredundant-decls]
protocol-common.h:86:3: note: previous declaration of ‘devices’ was here

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/xi2/protocol-common.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/xi2/protocol-common.h b/test/xi2/protocol-common.h
index 04a1e89..1b17175 100644
--- a/test/xi2/protocol-common.h
+++ b/test/xi2/protocol-common.h
@@ -83,7 +83,7 @@ struct devices {
 
     int num_devices;
     int num_master_devices;
-} devices;
+};
 
 /**
  * The set of default devices available in all tests if necessary.
-- 
1.7.10.1



More information about the xorg-devel mailing list