[Bf-blender-cvs] [cb9c4b4552d] blender2.8: Fix defined but unused static variable warning

Sergey Sharybin noreply at git.blender.org
Wed Nov 28 14:14:04 CET 2018


Commit: cb9c4b4552d30f9c35e4d9dfe1fe007fb010de29
Author: Sergey Sharybin
Date:   Wed Nov 28 14:13:42 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBcb9c4b4552d30f9c35e4d9dfe1fe007fb010de29

Fix defined but unused static variable warning

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

M	source/blender/collada/collada_utils.h

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

diff --git a/source/blender/collada/collada_utils.h b/source/blender/collada/collada_utils.h
index ab0c450a91c..a79085f0282 100644
--- a/source/blender/collada/collada_utils.h
+++ b/source/blender/collada/collada_utils.h
@@ -74,7 +74,7 @@ extern "C" {
 #include "BCSampleData.h"
 #include "BlenderContext.h"
 
-static int LIMITTED_PRECISION = 6;
+constexpr int LIMITTED_PRECISION = 6;
 
 struct Depsgraph;



More information about the Bf-blender-cvs mailing list