From c37b3df27b8813158a879202980dd47899341c19 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 12 Mar 2020 19:14:00 -0400 Subject: [PATCH] CLineRenderer: Silence -Wmaybe-uninitialized warning We can just initialize maxTriVerts to zero to prevent warnings from occurring. --- Runtime/Graphics/CLineRenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Graphics/CLineRenderer.cpp b/Runtime/Graphics/CLineRenderer.cpp index 367b6badf..517f72a2a 100644 --- a/Runtime/Graphics/CLineRenderer.cpp +++ b/Runtime/Graphics/CLineRenderer.cpp @@ -29,7 +29,7 @@ CLineRenderer::CLineRenderer(boo::IGraphicsDataFactory::Context& ctx, EPrimitive } m_textured = bool(texture); - u32 maxTriVerts; + u32 maxTriVerts = 0; switch (mode) { case EPrimitiveMode::Lines: case EPrimitiveMode::LineStrip: @@ -59,7 +59,7 @@ CLineRenderer::CLineRenderer(EPrimitiveMode mode, u32 maxVerts, const boo::ObjTo } m_textured = bool(texture); - u32 maxTriVerts; + u32 maxTriVerts = 0; switch (mode) { case EPrimitiveMode::Lines: case EPrimitiveMode::LineStrip: