diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-18 23:50:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-18 23:51:03 +0300 |
commit | 3d4b8922fcb794e0aa8ab5d1a0311f6b594c5b32 (patch) | |
tree | c31f1354942b697cd934094147a5a790e90f2a7d /source/blender/blenlib/BLI_compiler_typecheck.h | |
parent | d5ddc52ae1d7e4ae369e490b1d00d6fd6d0c6522 (diff) |
Ignore const qualifier when comparing types
Diffstat (limited to 'source/blender/blenlib/BLI_compiler_typecheck.h')
-rw-r--r-- | source/blender/blenlib/BLI_compiler_typecheck.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; \ })) |