[PATCH 03/14] dix: Avoid implicit declaration of 'verify_internal_event'.

Jeremy Huddleston jeremyhu at apple.com
Tue May 24 16:41:42 PDT 2011


Peter already has this one in his tree.

On May 24, 2011, at 09:41, Cyril Brulebois wrote:

> 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
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list