Fix compilation with strict compiler flags
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 13 May 2016 15:37:39 +0000 (17:37 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 13 May 2016 15:37:39 +0000 (17:37 +0200)
Some const qualifier was discarding.

source/blender/blenkernel/intern/library.c

index 0a681a75f845bc81158659ef8c3333781690a186..961b45df4e631c9e1c3a8943dcff37d5748da875 100644 (file)
@@ -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) \
        if (a && a->id.lib) { a->id.tag &= ~LIB_TAG_INDIRECT; a->id.tag |= LIB_TAG_EXTERN; } (void)0