[Bf-blender-cvs] [c946fdb2e5f] master: Calm Warning: Unused Variable

Harley Acheson noreply at git.blender.org
Sat Sep 11 18:08:06 CEST 2021


Commit: c946fdb2e5fc1eab139f70f01ea4e673435455bd
Author: Harley Acheson
Date:   Sat Sep 11 09:06:47 2021 -0700
Branches: master
https://developer.blender.org/rBc946fdb2e5fc1eab139f70f01ea4e673435455bd

Calm Warning: Unused Variable

Calms warning for unused variable in `constraint_copy_to_selected_poll`
by using UNUSED_VARS.

See D12453 for further details

Differential Revision: https://developer.blender.org/D12453

Reviewed by Campbell Barton

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

M	source/blender/editors/object/object_constraint.c

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

diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c
index c46e868899c..8702b18a46f 100644
--- a/source/blender/editors/object/object_constraint.c
+++ b/source/blender/editors/object/object_constraint.c
@@ -1786,7 +1786,8 @@ static bool constraint_copy_to_selected_poll(bContext *C)
 
   if (pchan) {
     bool found = false;
-    CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, chan, selected_pose_bones, Object *, UNUSED(ob)) {
+    CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, chan, selected_pose_bones, Object *, ob) {
+      UNUSED_VARS(ob);
       if (pchan != chan) {
         /** NOTE: Can not return here, because CTX_DATA_BEGIN_WITH_ID allocated
          * a list that needs to be freed by CTX_DATA_END. */



More information about the Bf-blender-cvs mailing list