[Bf-blender-cvs] [2e2164d] master: Resolve compiler warning for clang

Campbell Barton noreply at git.blender.org
Mon Jul 20 14:36:11 CEST 2015


Commit: 2e2164d5d4449ad7faa320cbbda68a72105903a3
Author: Campbell Barton
Date:   Mon Jul 20 22:17:20 2015 +1000
Branches: master
https://developer.blender.org/rB2e2164d5d4449ad7faa320cbbda68a72105903a3

Resolve compiler warning for clang

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

M	source/blender/blenkernel/BKE_mesh_mapping.h

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

diff --git a/source/blender/blenkernel/BKE_mesh_mapping.h b/source/blender/blenkernel/BKE_mesh_mapping.h
index 931db68..633bd8a 100644
--- a/source/blender/blenkernel/BKE_mesh_mapping.h
+++ b/source/blender/blenkernel/BKE_mesh_mapping.h
@@ -201,8 +201,9 @@ int *BKE_mesh_calc_smoothgroups(
 
 /* use on looptri vertex values */
 #define BKE_MESH_TESSTRI_VINDEX_ORDER(_tri, _v)  (                          \
-    (CHECK_TYPE_ANY(_tri, unsigned int *, int *, const unsigned int *, const int *), \
-     CHECK_TYPE_ANY(_v, unsigned int, int)),                                \
+    (CHECK_TYPE_ANY(_tri, unsigned int *, int *, int[3],                    \
+                          const unsigned int *, const int *, const int[3]), \
+     CHECK_TYPE_ANY(_v, unsigned int, const unsigned int, int, const int)), \
     (((_tri)[0] == _v) ? 0 :                                                \
      ((_tri)[1] == _v) ? 1 :                                                \
      ((_tri)[2] == _v) ? 2 : -1)                                            \




More information about the Bf-blender-cvs mailing list