From 34eaf2d092a959404f478ba3edb7ec63315fe491 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 18 Sep 2022 17:36:21 +0200 Subject: [PATCH] FIX: Initialize uninitialized enum in unittest. --- test/unit/ImportExport/MDL/utMDLImporter_HL1_Materials.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/ImportExport/MDL/utMDLImporter_HL1_Materials.cpp b/test/unit/ImportExport/MDL/utMDLImporter_HL1_Materials.cpp index c47667e76..b7020b5df 100644 --- a/test/unit/ImportExport/MDL/utMDLImporter_HL1_Materials.cpp +++ b/test/unit/ImportExport/MDL/utMDLImporter_HL1_Materials.cpp @@ -64,7 +64,7 @@ public: EXPECT_NE(nullptr, scene); EXPECT_NE(nullptr, scene->mMaterials); - aiShadingMode shading_mode; + aiShadingMode shading_mode = aiShadingMode_Flat; scene->mMaterials[0]->Get(AI_MATKEY_SHADING_MODEL, shading_mode); EXPECT_EQ(aiShadingMode_Flat, shading_mode); }