From 3d4b8922fcb794e0aa8ab5d1a0311f6b594c5b32 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 19 Jan 2016 07:50:07 +1100 Subject: Ignore const qualifier when comparing types --- source/blender/blenlib/BLI_compiler_typecheck.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '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 b9fb3ebf47a..74638938214 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; \ })) -- cgit v1.2.3