From: Eric Anholt Subject: [PATCH 5/7] uxa: Work around uninitialized-value warning. Date: Sat, 17 Nov 2012 13:11:12 -0800 Message-ID: <1353186674-7234-5-git-send-email-eric@anholt.net> References: <1353186674-7234-1-git-send-email-eric@anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1353186674-7234-1-git-send-email-eric@anholt.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org The compiler isn't noticing that localDst only diverges from pDst when the _copy variables have also been set. --- uxa/uxa-render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index 4463dc2..d783ea2 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -962,7 +962,7 @@ uxa_try_driver_composite(CARD8 op, RegionRec region; BoxPtr pbox; int nbox; - int xDst_copy, yDst_copy; + int xDst_copy = 0, yDst_copy = 0; int src_off_x, src_off_y, mask_off_x, mask_off_y, dst_off_x, dst_off_y; PixmapPtr pSrcPix, pMaskPix = NULL, pDstPix; PicturePtr localSrc, localMask = NULL; -- 1.7.10.4