From 3e1c785d31f6ba77599cee5e901b2668c1293120 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Mon, 22 Feb 2021 15:16:15 +0200 Subject: [PATCH] [3MF] Silence uninitialized variable warning This is a false positive but the compiler can't see it --- code/AssetLib/3MF/D3MFImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetLib/3MF/D3MFImporter.cpp b/code/AssetLib/3MF/D3MFImporter.cpp index 66b2c965b..4ee8946f1 100644 --- a/code/AssetLib/3MF/D3MFImporter.cpp +++ b/code/AssetLib/3MF/D3MFImporter.cpp @@ -427,7 +427,7 @@ private: aiFace face = ReadTriangle(currentNode); faces.push_back(face); - int pid, p1; + int pid = 0, p1; bool hasPid = getNodeAttribute(currentNode, D3MF::XmlTag::pid, pid); bool hasP1 = getNodeAttribute(currentNode, D3MF::XmlTag::p1, p1);