[Bf-blender-cvs] [3d4b892] master: Ignore const qualifier when comparing types

Campbell Barton noreply at git.blender.org
Mon Jan 18 23:31:04 CET 2016


Commit: 3d4b8922fcb794e0aa8ab5d1a0311f6b594c5b32
Author: Campbell Barton
Date:   Tue Jan 19 07:50:07 2016 +1100
Branches: master
https://developer.blender.org/rB3d4b8922fcb794e0aa8ab5d1a0311f6b594c5b32

Ignore const qualifier when comparing types

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

M	source/blender/blenlib/BLI_compiler_typecheck.h

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

diff --git a/source/blender/blenlib/BLI_compiler_typecheck.h b/source/blender/blenlib/BLI_compiler_typecheck.h
index b9fb3eb..7463893 100644
--- a/source/blender/blenlib/BLI_compiler_typecheck.h
+++ b/source/blender/blenlib/BLI_compiler_typecheck.h
@@ -39,13 +39,13 @@
 } (void)0
 
 #define CHECK_TYPE_PAIR(var_a, var_b)  {  \
-	typeof(var_a) *__tmp;                 \
+	const typeof(var_a) *__tmp;           \
 	__tmp = (typeof(var_b) *)NULL;        \
 	(void)__tmp;                          \
 } (void)0
 
 #define CHECK_TYPE_PAIR_INLINE(var_a, var_b)  ((void)({  \
-	typeof(var_a) *__tmp;                                \
+	const typeof(var_a) *__tmp;                          \
 	__tmp = (typeof(var_b) *)NULL;                       \
 	(void)__tmp;                                         \
 }))




More information about the Bf-blender-cvs mailing list