From 35cdd7b6dbc763fe57bf466def0a4257ca09beb8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 11 Jan 2012 12:07:15 -0800 Subject: [PATCH] i965: Fix compiler warning from uninitialized "success" value. This shouldn't happen, because the DDX should only load this driver if IS_965. But better to do something defined in that case. --- src/mesa/drivers/dri/intel/intel_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index ce96ddda85c..b0e800b7ecc 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -525,7 +525,7 @@ intelCreateContext(gl_api api, { __DRIscreen *sPriv = driContextPriv->driScreenPriv; struct intel_screen *intelScreen = sPriv->driverPrivate; - bool success; + bool success = false; #ifdef I915 if (IS_9XX(intelScreen->deviceID)) { -- 2.30.2