[Bf-blender-cvs] [3d50722cf50] blender2.8: Fix warnings in release builds.

Bastien Montagne noreply at git.blender.org
Fri Dec 1 17:42:26 CET 2017


Commit: 3d50722cf505d6afcc9866efebcb360caf00abee
Author: Bastien Montagne
Date:   Fri Dec 1 17:41:54 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB3d50722cf505d6afcc9866efebcb360caf00abee

Fix warnings in release builds.

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

M	source/blender/makesrna/intern/rna_animation.c
M	source/blender/makesrna/intern/rna_rna.c

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

diff --git a/source/blender/makesrna/intern/rna_animation.c b/source/blender/makesrna/intern/rna_animation.c
index 9f9bc14cd11..3d11e7bb723 100644
--- a/source/blender/makesrna/intern/rna_animation.c
+++ b/source/blender/makesrna/intern/rna_animation.c
@@ -593,6 +593,7 @@ bool rna_AnimaData_override_apply(
 {
 	BLI_assert(len_dst == len_src && (!ptr_storage || len_dst == len_storage) && len_dst == 0);
 	BLI_assert(opop->operation == IDOVERRIDESTATIC_OP_REPLACE && "Unsupported RNA override operation on animdata pointer");
+	UNUSED_VARS_NDEBUG(ptr_storage, len_dst, len_src, len_storage, opop);
 
 	/* AnimData is a special case, since you cannot edit/replace it, it's either existent or not. */
 	AnimData *adt_dst = RNA_property_pointer_get(ptr_dst, prop_dst).data;
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c
index a34894fb123..24d56ef2a19 100644
--- a/source/blender/makesrna/intern/rna_rna.c
+++ b/source/blender/makesrna/intern/rna_rna.c
@@ -1508,6 +1508,7 @@ bool rna_property_override_store_default(
         IDOverrideStaticPropertyOperation *opop)
 {
 	BLI_assert(len_local == len_reference && (!ptr_storage || len_local == len_storage));
+	UNUSED_VARS_NDEBUG(len_reference, len_storage);
 
 	bool changed = false;
 	const int index = opop->subitem_reference_index;
@@ -1818,6 +1819,7 @@ bool rna_property_override_apply_default(
         IDOverrideStaticPropertyOperation *opop)
 {
 	BLI_assert(len_dst == len_src && (!ptr_storage || len_dst == len_storage));
+	UNUSED_VARS_NDEBUG(len_src, len_storage);
 
 	const int index = opop->subitem_reference_index;
 	const short override_op = opop->operation;



More information about the Bf-blender-cvs mailing list