Fix compilation with strict compiler flags

Some const qualifier was discarding.
This commit is contained in:
Sergey Sharybin 2016-05-13 17:37:39 +02:00
parent 8b92d728ae
commit 89c6b58ef5

@ -1783,7 +1783,7 @@ void BKE_main_id_clear_newpoins(Main *bmain)
} }
} }
static void lib_indirect_test_id(ID *id, Library *lib) static void lib_indirect_test_id(ID *id, const Library *lib)
{ {
#define LIBTAG(a) \ #define LIBTAG(a) \
if (a && a->id.lib) { a->id.tag &= ~LIB_TAG_INDIRECT; a->id.tag |= LIB_TAG_EXTERN; } (void)0 if (a && a->id.lib) { a->id.tag &= ~LIB_TAG_INDIRECT; a->id.tag |= LIB_TAG_EXTERN; } (void)0