[PATCH mi 1/1] mi: Build fix: mieqProcessDeviceEvent returns void

Peter Hutterer peter.hutterer at who-t.net
Thu Jun 5 21:44:12 PDT 2014


On Thu, Jun 05, 2014 at 08:40:33PM -0700, Jeremy Huddleston Sequoia wrote:
> mieq.c:520:9: error: void function 'mieqProcessDeviceEvent' should not return a value [-Wreturn-type,Semantic Issue]
>         return 0;
>         ^      ~
> 1 error generated.
> 
> Regression-from: 9fb08310b51b46736f3ca8dbc04efdf502420403
> 
> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
> CC: Peter Hutterer <peter.hutterer at who-t.net>

whoops, sorry

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
   Peter


> ---
>  mi/mieq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mi/mieq.c b/mi/mieq.c
> index 0e27405..872ff93 100644
> --- a/mi/mieq.c
> +++ b/mi/mieq.c
> @@ -517,7 +517,7 @@ mieqProcessDeviceEvent(DeviceIntPtr dev, InternalEvent *event, ScreenPtr screen)
>  
>      /* refuse events from disabled devices */
>      if (!dev->enabled)
> -        return 0;
> +        return;
>  
>      /* Custom event handler */
>      handler = miEventQueue.handlers[event->any.type];
> -- 
> 1.9.4
> 


More information about the xorg-devel mailing list