From d7abbecb38efcaa8b3abb7963701e6dca9607f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Sun, 12 Apr 2020 13:22:53 -0700 Subject: [PATCH] Fixed maybe uninitialized warning. --- examples/common/bounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/bounds.cpp b/examples/common/bounds.cpp index 4ea9937a7..fe5e42ce8 100644 --- a/examples/common/bounds.cpp +++ b/examples/common/bounds.cpp @@ -2007,7 +2007,7 @@ bool overlap(const Triangle& _triangle, const Ty& _ty) const LineSegment bc = LineSegment{_triangle.v1, _triangle.v2}; const LineSegment ca = LineSegment{_triangle.v2, _triangle.v0}; - float ta0, tb0; + float ta0 = 0.0f, tb0 = 0.0f; const bool i0 = intersect(ta0, tb0, ab, line); float ta1, tb1;