Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dalai@blender.org>2022-06-24 12:24:11 +0300
committerHans Goudey <h.goudey@me.com>2022-06-25 00:04:31 +0300
commit2287b98e7ea07048126cecdabb050511f3417bb5 (patch)
tree45bc90bbbd898a7c9d56d5e7116de53d37c899af
parent81eac17737da467b3c10974c4dc03dd85e0fc622 (diff)
Cleanup: Fix building warnings on gcc 9.4.0
Solution by Jacques Lucke
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc2
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 f5652384177..5881be4922f 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc
+++ b/source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc
@@ -298,7 +298,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);