Cleanup: compiler warnings (unused-parameter & missing-declarations)

This commit is contained in:
Campbell Barton 2022-11-10 11:10:01 +11:00
parent 81ca6308d1
commit 79dae1a43f
2 changed files with 12 additions and 10 deletions

View File

@ -5065,6 +5065,8 @@ GHOST_SystemWayland::GHOST_SystemWayland(bool background)
}
}
else
#else
(void)background;
#endif
{
GWL_XDG_Decor_System &decor = *display_->xdg_decor;

View File

@ -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();