Ignore const qualifier when comparing types
authorCampbell Barton <ideasman42@gmail.com>
Mon, 18 Jan 2016 20:50:07 +0000 (07:50 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 18 Jan 2016 20:51:03 +0000 (07:51 +1100)
source/blender/blenlib/BLI_compiler_typecheck.h

index b9fb3ebf47ad3ecff68585c3a59d8c8668f6631e..74638938214ce386ce4afc1661a2640fd467041e 100644 (file)
 } (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;                                         \
 }))