From 20ccc66708bcd55372bff03fa0d78a7846e8c82d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sun, 20 Sep 2009 21:12:31 +1000 Subject: [PATCH] =?UTF-8?q?xfree86:=20silence=20warning:=20=E2=80=98rample?= =?UTF-8?q?n=E2=80=99=20may=20be=20used=20uninitialized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'ramplen' is only set and used if stuff->size > 0 but the compiler doesn't pick that up. Signed-off-by: Peter Hutterer --- hw/xfree86/dixmods/extmod/xf86vmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/dixmods/extmod/xf86vmode.c b/hw/xfree86/dixmods/extmod/xf86vmode.c index 4a288d79f..1cfb5cced 100644 --- a/hw/xfree86/dixmods/extmod/xf86vmode.c +++ b/hw/xfree86/dixmods/extmod/xf86vmode.c @@ -1540,7 +1540,7 @@ ProcXF86VidModeGetGammaRamp(ClientPtr client) { CARD16 *ramp = NULL; int n, length; - size_t ramplen; + size_t ramplen = 0; xXF86VidModeGetGammaRampReply rep; REQUEST(xXF86VidModeGetGammaRampReq);