[Bf-blender-cvs] [12e64e5ec14] master: Cleanup: Fix unused debug var warning.

Bastien Montagne noreply at git.blender.org
Wed Mar 11 18:50:53 CET 2020


Commit: 12e64e5ec14e257b61db225184328db1419f047a
Author: Bastien Montagne
Date:   Wed Mar 11 18:50:18 2020 +0100
Branches: master
https://developer.blender.org/rB12e64e5ec14e257b61db225184328db1419f047a

Cleanup: Fix unused debug var warning.

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

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

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

diff --git a/source/blender/blenkernel/intern/main_idmap.c b/source/blender/blenkernel/intern/main_idmap.c
index 26eb0b681a1..8b83482d685 100644
--- a/source/blender/blenkernel/intern/main_idmap.c
+++ b/source/blender/blenkernel/intern/main_idmap.c
@@ -124,6 +124,8 @@ struct IDNameLib_Map *BKE_main_idmap_create(struct Main *bmain,
       const bool existing_key = BLI_ghash_ensure_p(
           id_map->uuid_map, POINTER_FROM_UINT(id->session_uuid), &id_ptr_v);
       BLI_assert(existing_key == false);
+      UNUSED_VARS_NDEBUG(existing_key);
+
       *id_ptr_v = id;
     }
     FOREACH_MAIN_ID_END;



More information about the Bf-blender-cvs mailing list