mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-22 14:09:55 +08:00
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.
This commit is contained in:
parent
03cdef430d
commit
84e15260ba
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user