[Bf-blender-cvs] [ee49991999c] master: Cleanup: Silence missing switch case warning

Peter Kim noreply at git.blender.org
Wed Sep 22 21:01:17 CEST 2021


Commit: ee49991999c9c36cf90bbed513c1a38a688f269b
Author: Peter Kim
Date:   Wed Sep 22 12:00:21 2021 -0700
Branches: master
https://developer.blender.org/rBee49991999c9c36cf90bbed513c1a38a688f269b

Cleanup: Silence missing switch case warning

===================================================================

M	extern/tinygltf/README.blender
M	extern/tinygltf/tiny_gltf.h

===================================================================

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<double>());
       break;
     case json::value_t::null:
+    case json::value_t::binary:
     case json::value_t::discarded:
       // default:
       break;



More information about the Bf-blender-cvs mailing list