diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-12-01 19:41:54 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-12-01 19:42:13 +0300 |
commit | 3d50722cf505d6afcc9866efebcb360caf00abee (patch) | |
tree | 7ca5ca8881be8cb482ce5dc169bfdb1fe8af2baf /source/blender/makesrna | |
parent | a5454e8711c8b9728a4f7523bf92de60b945357a (diff) |
Fix warnings in release builds.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_animation.c | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 2 |
2 files changed, 3 insertions, 0 deletions
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; |