From: Eric Anholt Date: Wed, 11 Jan 2012 20:07:15 +0000 (-0800) Subject: i965: Fix compiler warning from uninitialized "success" value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35cdd7b6dbc763fe57bf466def0a4257ca09beb8;p=mesa.git 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. --- 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)) {