Cleanup: compiler warnings

This commit is contained in:
Brecht Van Lommel 2023-05-30 13:50:29 +02:00
parent b762f8da9c
commit e3ffc8bbfb
2 changed files with 3 additions and 1 deletions

View File

@ -1081,8 +1081,8 @@ blender::bke::greasepencil::Layer &GreasePencil::add_layer(
blender::bke::greasepencil::LayerGroup &group, const blender::StringRefNull name)
{
using namespace blender;
StringRefNull checked_name;
/* TODO: Check for name collisions and resolve them. */
/* StringRefNull checked_name; */
return group.add_layer(name);
}

View File

@ -63,10 +63,12 @@ template<class T> static inline const T *get_original(const T *id)
/* Check whether the ID is suitable to be an input of the dependency graph. */
/* TODO(sergey): Move the function and check to a more generic place. */
#ifndef NDEBUG
bool is_valid_input_id(const ID &id)
{
return (id.tag & LIB_TAG_LOCALIZED) || DEG_is_original_id(&id);
}
#endif
} // namespace