[Bf-blender-cvs] [249acdf5291] master: Cleanup: Unused variable warning in release build

Sergey Sharybin noreply at git.blender.org
Wed Nov 30 12:50:21 CET 2022


Commit: 249acdf52912d5718df8fa6f0bc4d2236a7ded68
Author: Sergey Sharybin
Date:   Wed Nov 30 12:49:33 2022 +0100
Branches: master
https://developer.blender.org/rB249acdf52912d5718df8fa6f0bc4d2236a7ded68

Cleanup: Unused variable warning in release build

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

M	source/blender/blenloader/intern/writefile.cc

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

diff --git a/source/blender/blenloader/intern/writefile.cc b/source/blender/blenloader/intern/writefile.cc
index 3a776a6c7ba..38d0970b4ed 100644
--- a/source/blender/blenloader/intern/writefile.cc
+++ b/source/blender/blenloader/intern/writefile.cc
@@ -1097,6 +1097,7 @@ static int write_id_direct_linked_data_process_cb(LibraryIDLinkCallbackData *cb_
   }
   BLI_assert(!ID_IS_LINKED(id_self));
   BLI_assert((cb_flag & IDWALK_CB_INDIRECT_USAGE) == 0);
+  UNUSED_VARS_NDEBUG(id_self);
 
   if (cb_flag & IDWALK_CB_DIRECT_WEAK_LINK) {
     id_lib_indirect_weak_link(id);



More information about the Bf-blender-cvs mailing list