[Bf-blender-cvs] [79dae1a43f1] blender-v3.4-release: Cleanup: compiler warnings (unused-parameter & missing-declarations)
Campbell Barton
noreply at git.blender.org
Thu Nov 10 01:14:12 CET 2022
Commit: 79dae1a43f10590be913d42a9c6c2e3e66ca6302
Author: Campbell Barton
Date: Thu Nov 10 11:10:01 2022 +1100
Branches: blender-v3.4-release
https://developer.blender.org/rB79dae1a43f10590be913d42a9c6c2e3e66ca6302
Cleanup: compiler warnings (unused-parameter & missing-declarations)
===================================================================
M intern/ghost/intern/GHOST_SystemWayland.cpp
M source/blender/geometry/intern/trim_curves.cc
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp
index f068ef79c57..a2028de6f53 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -5065,6 +5065,8 @@ GHOST_SystemWayland::GHOST_SystemWayland(bool background)
}
}
else
+#else
+ (void)background;
#endif
{
GWL_XDG_Decor_System &decor = *display_->xdg_decor;
diff --git a/source/blender/geometry/intern/trim_curves.cc b/source/blender/geometry/intern/trim_curves.cc
index c1e65f1e0c7..6ec57c91851 100644
--- a/source/blender/geometry/intern/trim_curves.cc
+++ b/source/blender/geometry/intern/trim_curves.cc
@@ -752,16 +752,16 @@ static float trim_sample_length(const Span<float> accumulated_lengths,
* Compute the selection for the given curve type. Tracks indices for splitting the selection if
* there are curves reduced to a single point.
*/
-void compute_curve_trim_parameters(const bke::CurvesGeometry &curves,
- const IndexMask selection,
- const VArray<float> &starts,
- const VArray<float> &ends,
- const GeometryNodeCurveSampleMode mode,
- MutableSpan<int> dst_curve_size,
- MutableSpan<int8_t> dst_curve_types,
- MutableSpan<bke::curves::CurvePoint> start_points,
- MutableSpan<bke::curves::CurvePoint> end_points,
- MutableSpan<bke::curves::IndexRangeCyclic> src_ranges)
+static void compute_curve_trim_parameters(const bke::CurvesGeometry &curves,
+ const IndexMask selection,
+ const VArray<float> &starts,
+ const VArray<float> &ends,
+ const GeometryNodeCurveSampleMode mode,
+ MutableSpan<int> dst_curve_size,
+ MutableSpan<int8_t> dst_curve_types,
+ MutableSpan<bke::curves::CurvePoint> start_points,
+ MutableSpan<bke::curves::CurvePoint> end_points,
+ MutableSpan<bke::curves::IndexRangeCyclic> src_ranges)
{
const VArray<bool> src_cyclic = curves.cyclic();
const VArray<int> resolution = curves.resolution();
More information about the Bf-blender-cvs
mailing list