summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-08-17 18:37:10 -0700
committerAdam Jackson <ajax@redhat.com>2015-10-26 12:18:04 -0400
commite9385b42a3f6cb1eadd5080019b9faf9538e5608 (patch)
tree496f908100612a956f71fedd5811c0a0e884296b
parent00b3f5a2eda7b819057d9e150754dc0a509f6e39 (diff)
mi: Always initialize edge1 and edge2 in miLineArc
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@keithp.com> Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit bca4f4b56c7619d17f9df46f7aac392ea01a9429)
-rw-r--r--mi/miwideline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/miwideline.c b/mi/miwideline.c
index 452d74fc1..6f0b9bcbd 100644
--- a/mi/miwideline.c
+++ b/mi/miwideline.c
@@ -1458,7 +1458,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;