diff options
author | Brian Paul <brianp@vmware.com> | 2009-02-04 08:38:28 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-02-04 16:33:25 -0700 |
commit | 906c60d0b7c6ad3e78c142643634e4189c07b57f (patch) | |
tree | 995464aa3a142361e1673740d1836dec42222b62 /progs | |
parent | 803504e69fbd85713fc6d93af21f5245852cecab (diff) |
demos: silence uninitialized var warning
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/demos/engine.c b/progs/demos/engine.c index 6040a2f103..d1c3237ac7 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)); |