From: Brian Paul Date: Wed, 4 Feb 2009 15:38:28 +0000 (-0700) Subject: demos: silence uninitialized var warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=906c60d0b7c6ad3e78c142643634e4189c07b57f;p=mesa.git demos: silence uninitialized var warning --- diff --git a/progs/demos/engine.c b/progs/demos/engine.c index 6040a2f1030..d1c3237ac75 100644 --- a/progs/demos/engine.c +++ b/progs/demos/engine.c @@ -555,7 +555,7 @@ SquareWithHole(float squareSize, float holeRadius) for (i = 0; i <= 360; i += 5) { const float x1 = holeRadius * cos(DEG_TO_RAD(i)); const float y1 = holeRadius * sin(DEG_TO_RAD(i)); - float x2, y2; + float x2 = 0.0F, y2 = 0.0F; if (i > 315 || i <= 45) { x2 = squareSize; y2 = squareSize * tan(DEG_TO_RAD(i));