[Bf-blender-cvs] [89c6b58] master: Fix compilation with strict compiler flags

Sergey Sharybin noreply at git.blender.org
Fri May 13 17:37:51 CEST 2016


Commit: 89c6b58ef5beced631beda50fe89a5087c1e8348
Author: Sergey Sharybin
Date:   Fri May 13 17:37:39 2016 +0200
Branches: master
https://developer.blender.org/rB89c6b58ef5beced631beda50fe89a5087c1e8348

Fix compilation with strict compiler flags

Some const qualifier was discarding.

===================================================================

M	source/blender/blenkernel/intern/library.c

===================================================================

diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index 0a681a7..961b45d 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -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




More information about the Bf-blender-cvs mailing list