[Bf-blender-cvs] [2287b98e7ea] blender-v3.2-release: Cleanup: Fix building warnings on gcc 9.4.0

Dalai Felinto noreply at git.blender.org
Fri Jun 24 23:04:49 CEST 2022


Commit: 2287b98e7ea07048126cecdabb050511f3417bb5
Author: Dalai Felinto
Date:   Fri Jun 24 11:24:11 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rB2287b98e7ea07048126cecdabb050511f3417bb5

Cleanup: Fix building warnings on gcc 9.4.0

Solution by Jacques Lucke

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex_color_ops.cc

===================================================================

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



More information about the Bf-blender-cvs mailing list