[PATCH 4/4] Fix redundant declaration of PostSyntheticMotion()

Jon TURNEY jon.turney at dronecode.org.uk
Fri Jan 27 07:55:43 PST 2012

../../include/dixevents.h:84:13: warning: redundant redeclaration of ‘PostSyntheticMotion’ [-Wredundant-decls]
../../include/input.h:525:13: note: previous declaration of ‘PostSyntheticMotion’ was here

PostSyntheticMotion is declared in dixevents.h under PANORAMIX, and unconditionally in input.h, so just remove
the conditional declaration

PostSyntheticMotion is only used inside the server in dix/events.c and dix/getevents.c, both of which include
input.h (indirectly)

This function is marked X_EXPORT, and both dixevents.h and input.h are installed as SDK headers, so this change
will cause code using the SDK headers and which only includes dixevents.h to no longer have the prototype for
PostSyntheticMotion available.

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
 include/dixevents.h |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/include/dixevents.h b/include/dixevents.h
index b915345..2d4bb2c 100644
--- a/include/dixevents.h
+++ b/include/dixevents.h
@@ -80,12 +80,4 @@ extern _X_EXPORT int ProcUngrabButton(ClientPtr /* client */);
 extern _X_EXPORT int ProcRecolorCursor(ClientPtr /* client */);
-extern _X_EXPORT void PostSyntheticMotion(DeviceIntPtr pDev,
-                                int x, 
-                                int y, 
-                                int screen,
-                                unsigned long time);
 #endif /* DIXEVENTS_H */

More information about the xorg-devel mailing list