[PATCH] Change disable_clientpointer return type to void

Alan Coopersmith alan.coopersmith at oracle.com
Fri Dec 9 11:29:46 PST 2011

It doesn't return anything, nor does its caller expect it to.

Fixes Solaris Studio compiler error:
"xichangehierarchy.c", line 214: Function has no return statement : disable_clientpointer

and gcc error:
xichangehierarchy.c: In function 'disable_clientpointer':
xichangehierarchy.c:214:1: error: no return statement in function returning non-void [-Werror=return-type]

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
 Xi/xichangehierarchy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Xi/xichangehierarchy.c b/Xi/xichangehierarchy.c
index a8bc761..503404e 100644
--- a/Xi/xichangehierarchy.c
+++ b/Xi/xichangehierarchy.c
@@ -200,7 +200,7 @@ unwind:
     return rc;
-static int
+static void
 disable_clientpointer(DeviceIntPtr dev)
     int i;

More information about the xorg-devel mailing list