[Intel-gfx] [PATCH] Fix compiler warning concering uninitialized variable.

Stead, Alan alan.stead at intel.com
Fri Nov 18 19:32:43 CET 2011


From: Alan Stead <alan.stead at intel.com>

Fixes a compiler warning concerning an uninitialized variable.
Looks like these two (xDst_copy and yDst_copy) are just set to
(xDst and yDst) on line 1168.

---
 uxa/uxa-render.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 51c12f1..a00b372 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -1126,7 +1126,7 @@ uxa_try_driver_composite(CARD8 op,
    RegionRec region;
    BoxPtr pbox;
    int nbox;
-   int xDst_copy, yDst_copy;
+   int xDst_copy = xDst, yDst_copy = yDst;
    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.7.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8602 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20111118/3163c7b0/attachment.bin>


More information about the Intel-gfx mailing list