Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-05 20:02:21 +0300
committerHans Goudey <h.goudey@me.com>2022-09-05 20:02:21 +0300
commit258d3858572b588051814363abe42044eeec3182 (patch)
treef6d8437ccb4b45e64a16274f6e0c16fa6e6b2631
parent05952aa94d33eeb504fa63618ba35c2bcc8bd19b (diff)
Cleanup: Unused variable, compiler warning
-rw-r--r--source/blender/blenkernel/BKE_collection.h1
-rw-r--r--source/blender/blenkernel/intern/collection.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_collection.h b/source/blender/blenkernel/BKE_collection.h
index 4a729311b6a..4346c2a3d23 100644
--- a/source/blender/blenkernel/BKE_collection.h
+++ b/source/blender/blenkernel/BKE_collection.h
@@ -26,6 +26,7 @@ struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct Collection;
+struct ID;
struct Library;
struct Main;
struct Object;
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index 572a0caa3c7..e0448afdec6 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -186,6 +186,8 @@ static ID *collection_owner_get(Main *bmain, ID *id, ID *UNUSED(owner_id_hint))
}
}
BLI_assert(is_owner_found);
+#else
+ UNUSED_VARS(bmain);
#endif
return master_collection->owner_id;