[Bf-blender-cvs] [59553d47c00] master: Cleanup: quiet array-parameter warning
Campbell Barton
noreply at git.blender.org
Wed Jun 9 18:23:49 CEST 2021
Commit: 59553d47c0075404790214b63e0edc55c48c5d90
Author: Campbell Barton
Date: Thu Jun 10 01:55:41 2021 +1000
Branches: master
https://developer.blender.org/rB59553d47c0075404790214b63e0edc55c48c5d90
Cleanup: quiet array-parameter warning
===================================================================
M source/blender/blenkernel/intern/main.c
===================================================================
diff --git a/source/blender/blenkernel/intern/main.c b/source/blender/blenkernel/intern/main.c
index dc678f248c9..39cc5737ca2 100644
--- a/source/blender/blenkernel/intern/main.c
+++ b/source/blender/blenkernel/intern/main.c
@@ -538,10 +538,12 @@ ListBase *which_libbase(Main *bmain, short type)
* This is useful for generic traversal of all the blocks in a #Main (by traversing all the lists
* in turn), without worrying about block types.
*
+ * \param lb: Array of lists #INDEX_ID_MAX in length.
+ *
* \note The order of each ID type #ListBase in the array is determined by the `INDEX_ID_<IDTYPE>`
* enum definitions in `DNA_ID.h`. See also the #FOREACH_MAIN_ID_BEGIN macro in `BKE_main.h`
*/
-int set_listbasepointers(Main *bmain, ListBase *lb[INDEX_ID_MAX])
+int set_listbasepointers(Main *bmain, ListBase *lb[/*INDEX_ID_MAX*/])
{
/* Libraries may be accessed from pretty much any other ID. */
lb[INDEX_ID_LI] = &(bmain->libraries);
More information about the Bf-blender-cvs
mailing list