diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-20 21:12:31 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-21 08:03:37 +1000 |
commit | 20ccc66708bcd55372bff03fa0d78a7846e8c82d (patch) | |
tree | 5994d9f25fef0699b046ef9725de146ce5c8cf17 | |
parent | 2df10a49867635c341b1d1a9faadf4dbae043a0f (diff) |
xfree86: silence warning: ‘ramplen’ may be used uninitialized
'ramplen' is only set and used if stuff->size > 0 but the compiler doesn't
pick that up.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | hw/xfree86/dixmods/extmod/xf86vmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |