From 84e15260ba6b22dcf401940aa2a3b75239bbe3db Mon Sep 17 00:00:00 2001 From: snowapril Date: Sat, 20 Mar 2021 19:25:58 +0900 Subject: [PATCH] add (void)err for handling unused variable warning I saw in the `ParseExtensionsProperty`(3667) function, unused variable err argument is wrapped with (void) keword. I think err argument in the `ParseDracoExtension`(4472) is exactly same situation with the above one. For consistency, I think it need to be added (void)err in the `ParseDracoExtension` function. --- tiny_gltf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tiny_gltf.h b/tiny_gltf.h index 3ce808d..c255c38 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -4472,6 +4472,7 @@ static bool GetAttributeForAllPoints(uint32_t componentType, draco::Mesh *mesh, static bool ParseDracoExtension(Primitive *primitive, Model *model, std::string *err, const Value &dracoExtensionValue) { + (void)err; auto bufferViewValue = dracoExtensionValue.Get("bufferView"); if (!bufferViewValue.IsInt()) return false; auto attributesValue = dracoExtensionValue.Get("attributes");