Cleanup: compiler warnings
This commit is contained in:
@@ -91,9 +91,10 @@ endif()
|
|||||||
|
|
||||||
if(UNIX AND (NOT APPLE) AND LIBDIR AND (EXISTS ${LIBDIR}))
|
if(UNIX AND (NOT APPLE) AND LIBDIR AND (EXISTS ${LIBDIR}))
|
||||||
# Only search for the path if it's found on the system.
|
# Only search for the path if it's found on the system.
|
||||||
set(LIBDIR_STALE "/lib/linux_centos7_x86_64/")
|
set(_libdir_stale "/lib/linux_centos7_x86_64/")
|
||||||
unset_cached_varables_containting(
|
unset_cached_varables_containting(
|
||||||
"${LIBDIR_STALE}"
|
"${_libdir_stale}"
|
||||||
"Auto clearing old ${LIBDIR_STALE} paths from CMake configuration"
|
"Auto clearing old ${_libdir_stale} paths from CMake configuration"
|
||||||
)
|
)
|
||||||
|
unset(_libdir_stale)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ class BlurAttributeFieldInput final : public bke::GeometryFieldInput {
|
|||||||
return GVArray::ForGArray(std::move(main_buffer));
|
return GVArray::ForGArray(std::move(main_buffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
weight_field_.node().for_each_field_input_recursive(fn);
|
weight_field_.node().for_each_field_input_recursive(fn);
|
||||||
value_field_.node().for_each_field_input_recursive(fn);
|
value_field_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class EndpointFieldInput final : public bke::CurvesFieldInput {
|
|||||||
return VArray<bool>::ForContainer(std::move(selection));
|
return VArray<bool>::ForContainer(std::move(selection));
|
||||||
};
|
};
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
start_size_.node().for_each_field_input_recursive(fn);
|
start_size_.node().for_each_field_input_recursive(fn);
|
||||||
end_size_.node().for_each_field_input_recursive(fn);
|
end_size_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class PointsOfCurveInput final : public bke::CurvesFieldInput {
|
|||||||
return VArray<int>::ForContainer(std::move(point_of_curve));
|
return VArray<int>::ForContainer(std::move(point_of_curve));
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
curve_index_.node().for_each_field_input_recursive(fn);
|
curve_index_.node().for_each_field_input_recursive(fn);
|
||||||
sort_index_.node().for_each_field_input_recursive(fn);
|
sort_index_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class PathToEdgeSelectionFieldInput final : public bke::MeshFieldInput {
|
|||||||
VArray<bool>::ForContainer(std::move(selection)), ATTR_DOMAIN_EDGE, domain);
|
VArray<bool>::ForContainer(std::move(selection)), ATTR_DOMAIN_EDGE, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
start_vertices_.node().for_each_field_input_recursive(fn);
|
start_vertices_.node().for_each_field_input_recursive(fn);
|
||||||
next_vertex_.node().for_each_field_input_recursive(fn);
|
next_vertex_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class HandlePositionFieldInput final : public bke::CurvesFieldInput {
|
|||||||
VArray<float3>::ForContainer(std::move(output)), ATTR_DOMAIN_POINT, domain);
|
VArray<float3>::ForContainer(std::move(output)), ATTR_DOMAIN_POINT, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
relative_.node().for_each_field_input_recursive(fn);
|
relative_.node().for_each_field_input_recursive(fn);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class PlanarFieldInput final : public bke::MeshFieldInput {
|
|||||||
VArray<bool>::ForFunc(polys.size(), planar_fn), ATTR_DOMAIN_FACE, domain);
|
VArray<bool>::ForFunc(polys.size(), planar_fn), ATTR_DOMAIN_FACE, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
threshold_.node().for_each_field_input_recursive(fn);
|
threshold_.node().for_each_field_input_recursive(fn);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class ShortestEdgePathsNextVertFieldInput final : public bke::MeshFieldInput {
|
|||||||
VArray<int>::ForContainer(std::move(next_index)), ATTR_DOMAIN_POINT, domain);
|
VArray<int>::ForContainer(std::move(next_index)), ATTR_DOMAIN_POINT, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
end_selection_.node().for_each_field_input_recursive(fn);
|
end_selection_.node().for_each_field_input_recursive(fn);
|
||||||
cost_.node().for_each_field_input_recursive(fn);
|
cost_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class InterpolateDomain final : public bke::GeometryFieldInput {
|
|||||||
GVArray::ForGArray(std::move(values)), src_domain_, context.domain());
|
GVArray::ForGArray(std::move(values)), src_domain_, context.domain());
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
src_field_.node().for_each_field_input_recursive(fn);
|
src_field_.node().for_each_field_input_recursive(fn);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class BoundaryFieldInput final : public bke::MeshFieldInput {
|
|||||||
VArray<bool>::ForContainer(std::move(boundary)), ATTR_DOMAIN_EDGE, domain);
|
VArray<bool>::ForContainer(std::move(boundary)), ATTR_DOMAIN_EDGE, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
face_set_.node().for_each_field_input_recursive(fn);
|
face_set_.node().for_each_field_input_recursive(fn);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ class CornersOfFaceInput final : public bke::MeshFieldInput {
|
|||||||
return VArray<int>::ForContainer(std::move(corner_of_face));
|
return VArray<int>::ForContainer(std::move(corner_of_face));
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
face_index_.node().for_each_field_input_recursive(fn);
|
face_index_.node().for_each_field_input_recursive(fn);
|
||||||
sort_index_.node().for_each_field_input_recursive(fn);
|
sort_index_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ class CornersOfVertInput final : public bke::MeshFieldInput {
|
|||||||
return VArray<int>::ForContainer(std::move(corner_of_vertex));
|
return VArray<int>::ForContainer(std::move(corner_of_vertex));
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
vert_index_.node().for_each_field_input_recursive(fn);
|
vert_index_.node().for_each_field_input_recursive(fn);
|
||||||
sort_index_.node().for_each_field_input_recursive(fn);
|
sort_index_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ class EdgesOfVertInput final : public bke::MeshFieldInput {
|
|||||||
return VArray<int>::ForContainer(std::move(edge_of_vertex));
|
return VArray<int>::ForContainer(std::move(edge_of_vertex));
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
vert_index_.node().for_each_field_input_recursive(fn);
|
vert_index_.node().for_each_field_input_recursive(fn);
|
||||||
sort_index_.node().for_each_field_input_recursive(fn);
|
sort_index_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class OffsetCornerInFaceFieldInput final : public bke::MeshFieldInput {
|
|||||||
return VArray<int>::ForContainer(std::move(offset_corners));
|
return VArray<int>::ForContainer(std::move(offset_corners));
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
corner_index_.node().for_each_field_input_recursive(fn);
|
corner_index_.node().for_each_field_input_recursive(fn);
|
||||||
offset_.node().for_each_field_input_recursive(fn);
|
offset_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class ControlPointNeighborFieldInput final : public bke::CurvesFieldInput {
|
|||||||
return VArray<int>::ForContainer(std::move(output));
|
return VArray<int>::ForContainer(std::move(output));
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
index_.node().for_each_field_input_recursive(fn);
|
index_.node().for_each_field_input_recursive(fn);
|
||||||
offset_.node().for_each_field_input_recursive(fn);
|
offset_.node().for_each_field_input_recursive(fn);
|
||||||
@@ -145,7 +145,7 @@ class OffsetValidFieldInput final : public bke::CurvesFieldInput {
|
|||||||
return VArray<bool>::ForContainer(std::move(output));
|
return VArray<bool>::ForContainer(std::move(output));
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
index_.node().for_each_field_input_recursive(fn);
|
index_.node().for_each_field_input_recursive(fn);
|
||||||
offset_.node().for_each_field_input_recursive(fn);
|
offset_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ class PackIslandsFieldInput final : public bke::MeshFieldInput {
|
|||||||
return construct_uv_gvarray(mesh, selection_field_, uv_field_, rotate_, margin_, domain);
|
return construct_uv_gvarray(mesh, selection_field_, uv_field_, rotate_, margin_, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
selection_field_.node().for_each_field_input_recursive(fn);
|
selection_field_.node().for_each_field_input_recursive(fn);
|
||||||
uv_field_.node().for_each_field_input_recursive(fn);
|
uv_field_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ class UnwrapFieldInput final : public bke::MeshFieldInput {
|
|||||||
return construct_uv_gvarray(mesh, selection_, seam_, fill_holes_, margin_, method_, domain);
|
return construct_uv_gvarray(mesh, selection_, seam_, fill_holes_, margin_, method_, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
|
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const override
|
||||||
{
|
{
|
||||||
selection_.node().for_each_field_input_recursive(fn);
|
selection_.node().for_each_field_input_recursive(fn);
|
||||||
seam_.node().for_each_field_input_recursive(fn);
|
seam_.node().for_each_field_input_recursive(fn);
|
||||||
|
|||||||
Reference in New Issue
Block a user