[PATCH 2/2] mi: Always initialize edge1 and edge2 in miLineArc
Keith Packard
keithp at keithp.com
Mon Aug 17 18:39:57 PDT 2015
This eliminates a warning generated when miLineArcD is inlined and the
compiler can't figure out that edge1 and edge2 are always initialized
before being used.
Signed-off-by: Keith Packard <keithp at keithp.com>
---
mi/miwideline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mi/miwideline.c b/mi/miwideline.c
index 3baa99b..54de1d3 100644
--- a/mi/miwideline.c
+++ b/mi/miwideline.c
@@ -1454,7 +1454,7 @@ miLineArc(DrawablePtr pDraw,
int xorgi = 0, yorgi = 0;
Spans spanRec;
int n;
- PolyEdgeRec edge1, edge2;
+ PolyEdgeRec edge1 = { 0 }, edge2 = { 0 };
int edgey1, edgey2;
Bool edgeleft1, edgeleft2;
--
2.5.0
More information about the xorg-devel
mailing list