From 87da1e775fcf4855a42703c541bfabc9fd4d25f5 Mon Sep 17 00:00:00 2001 From: snowapril Date: Tue, 30 Mar 2021 00:16:04 +0900 Subject: [PATCH] Delete unused variable initialization code Line 4536 in tinygltf.h file, there is unused variable initialization code like below. ```c++ const auto pBuffer = pAttribute->buffer(); ``` gcc compiler complain about that unused variable. I found there is no side-effect in `pAttribute->buffer()` call and also pBuffer variable is never used. Therefore I delete that line entirely. --- tiny_gltf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index c255c38..15d738c 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -4533,7 +4533,6 @@ static bool ParseDracoExtension(Primitive *primitive, Model *model, int dracoAttributeIndex = attribute.second.Get(); const auto pAttribute = mesh->GetAttributeByUniqueId(dracoAttributeIndex); - const auto pBuffer = pAttribute->buffer(); const auto componentType = model->accessors[primitiveAttribute->second].componentType;