From ee49991999c9c36cf90bbed513c1a38a688f269b Mon Sep 17 00:00:00 2001 From: Peter Kim Date: Wed, 22 Sep 2021 12:00:21 -0700 Subject: Cleanup: Silence missing switch case warning --- extern/tinygltf/README.blender | 3 ++- extern/tinygltf/tiny_gltf.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'extern') diff --git a/extern/tinygltf/README.blender b/extern/tinygltf/README.blender index fe23d320b77..2aba84dea80 100644 --- a/extern/tinygltf/README.blender +++ b/extern/tinygltf/README.blender @@ -2,4 +2,5 @@ Project: TinyGLTF URL: https://github.com/syoyo/tinygltf License: MIT Upstream version: 2.5.0, 19a41d20ec0 -Local modifications: None +Local modifications: +* Silence "enum value not handled in switch" warnings due to JSON dependency. diff --git a/extern/tinygltf/tiny_gltf.h b/extern/tinygltf/tiny_gltf.h index 185bb0daa98..099e0c76d92 100644 --- a/extern/tinygltf/tiny_gltf.h +++ b/extern/tinygltf/tiny_gltf.h @@ -3201,6 +3201,7 @@ static bool ParseJsonAsValue(Value *ret, const json &o) { val = Value(o.get()); break; case json::value_t::null: + case json::value_t::binary: case json::value_t::discarded: // default: break; -- cgit v1.2.3