mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-11 00:10:39 +01:00
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>
This commit is contained in:
parent
5daf1295cb
commit
bca4f4b56c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue