randr: void function cannot return value
authorNicolas Kaiser <nikai@nikai.net>
Mon, 6 Jun 2011 14:53:41 +0000 (16:53 +0200)
committerKeith Packard <keithp@keithp.com>
Mon, 6 Jun 2011 15:47:56 +0000 (08:47 -0700)
Providing an argument to return in a function with void return type
is not allowed by the C standard, and makes the Sun compilers unhappy.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
randr/rrcrtc.c

index d4d8f2a..0437795 100644 (file)
@@ -632,7 +632,7 @@ RRModeGetScanoutSize (RRModePtr mode, PictTransformPtr transform,
 void
 RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height)
 {
-    return RRModeGetScanoutSize (crtc->mode, &crtc->transform, width, height);
+    RRModeGetScanoutSize (crtc->mode, &crtc->transform, width, height);
 }
 
 /*