diff options
author | Dalai Felinto <dalai@blender.org> | 2022-06-24 12:24:11 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2022-06-24 12:25:12 +0300 |
commit | 79973494eca596bc633ca0d2da30d5e19ccd1733 (patch) | |
tree | 45bc31cc1323baa540792e30dc4d4724dcc208cf /source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc | |
parent | e08c9324823b24168cdf278c5c9b7ec519335112 (diff) |
Cleanup: Fix building warnings on gcc 9.4.0
Solution by Jacques Lucke
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc b/source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc index 0fb4ded3b2a..a7c44a17e05 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc +++ b/source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc @@ -294,7 +294,7 @@ static bool transform_active_color(Mesh &mesh, const TransformFn &transform_fn) attribute_math::convert_to_static_type(color_attribute.varray.type(), [&](auto dummy) { using T = decltype(dummy); threading::parallel_for(selection.index_range(), 1024, [&](IndexRange range) { - for (const int i : selection.slice(range)) { + for ([[maybe_unused]] const int i : selection.slice(range)) { if constexpr (std::is_same_v<T, ColorGeometry4f>) { ColorGeometry4f color = color_attribute.varray.get<ColorGeometry4f>(i); transform_fn(color); |