From 21eec367d0d9c142458f973062e17add4f693033 Mon Sep 17 00:00:00 2001 From: Nicolas Kaiser Date: Mon, 6 Jun 2011 16:53:41 +0200 Subject: [PATCH] randr: void function cannot return value 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 Reviewed-by: Jeremy Huddleston Reviewed-by: Alan Coopersmith Signed-off-by: Keith Packard --- randr/rrcrtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index d4d8f2ad2..0437795c4 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -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); } /*