From cd81f81fb6686e222e9026ab966f148faf7e3119 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 22 Dec 2019 10:44:14 +0400 Subject: [PATCH] Initialize variables to avoid GCC warnings --- apps/openmw/mwrender/util.cpp | 2 +- components/detournavigator/recastmeshmanager.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/util.cpp b/apps/openmw/mwrender/util.cpp index ed10d86aca..59a12794bd 100644 --- a/apps/openmw/mwrender/util.cpp +++ b/apps/openmw/mwrender/util.cpp @@ -23,7 +23,7 @@ class TextureOverrideVisitor : public osg::NodeVisitor virtual void apply(osg::Node& node) { - int index; + int index = 0; osg::ref_ptr nodePtr(&node); if (node.getUserValue("overrideFx", index)) { diff --git a/components/detournavigator/recastmeshmanager.hpp b/components/detournavigator/recastmeshmanager.hpp index f8602e5145..a6f86bfcf7 100644 --- a/components/detournavigator/recastmeshmanager.hpp +++ b/components/detournavigator/recastmeshmanager.hpp @@ -30,7 +30,7 @@ namespace DetourNavigator public: struct Water { - int mCellSize; + int mCellSize = 0; btTransform mTransform; };