[PATCH 03/14] dix: Avoid implicit declaration of 'verify_internal_event'.
Cyril Brulebois
kibi at debian.org
Tue May 24 09:41:07 PDT 2011
Those warnings go away accordingly:
| CC events.lo
| events.c: In function 'DeliverDeviceEvents':
| events.c:2485:5: warning: implicit declaration of function 'verify_internal_event' [-Wimplicit-function-declaration]
| events.c:2485:5: warning: nested extern declaration of 'verify_internal_event' [-Wnested-externs]
The following warning remains, though:
| CC events.lo
| events.c: In function 'CheckMotion':
| events.c:2835:5: warning: passing argument 1 of 'verify_internal_event' from incompatible pointer type [enabled by default]
| ../include/inpututils.h:40:13: note: expected 'const union InternalEvent *' but argument is of type 'struct DeviceEvent *'
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
dix/events.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dix/events.c b/dix/events.c
index 126d825..071802b 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -152,6 +152,8 @@ typedef const char *string;
#include "enterleave.h"
#include "eventconvert.h"
+#include "inpututils.h"
+
/* Extension events type numbering starts at EXTENSION_EVENT_BASE. */
#define NoSuchEvent 0x80000000 /* so doesn't match NoEventMask */
#define StructureAndSubMask ( StructureNotifyMask | SubstructureNotifyMask )
--
1.7.5.1
More information about the xorg-devel
mailing list