diff options
author | Jacques Lucke <jacques@blender.org> | 2022-05-12 14:03:12 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-05-12 14:03:12 +0300 |
commit | dea5d22da1030860a2ab78b528029eb7c49d995d (patch) | |
tree | 16ec2cb9e193706262a2c32be86fb804c255f84b /source/blender/functions | |
parent | f5077e057b01e3c19dd9ba00e3acee8138569ac9 (diff) |
Cleanup: remove warnings due to maybe-used variables
The variable was only used in some constexpr if-statements.
Diffstat (limited to 'source/blender/functions')
-rw-r--r-- | source/blender/functions/FN_multi_function_builder.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/functions/FN_multi_function_builder.hh b/source/blender/functions/FN_multi_function_builder.hh index a35339b2495..dc91c9ee47c 100644 --- a/source/blender/functions/FN_multi_function_builder.hh +++ b/source/blender/functions/FN_multi_function_builder.hh @@ -209,7 +209,7 @@ void execute_materialized(TypeSequence<ParamTags...> /* param_tags */, [&] { using ParamTag = ParamTags; using T = typename ParamTag::base_type; - ArgInfo<ParamTags> &arg_info = std::get<I>(args_info); + [[maybe_unused]] ArgInfo<ParamTags> &arg_info = std::get<I>(args_info); if constexpr (ParamTag::category == MFParamCategory::SingleInput) { VArray<T> &varray = *args; if (varray.is_single()) { @@ -246,7 +246,7 @@ void execute_materialized(TypeSequence<ParamTags...> /* param_tags */, [&] { using ParamTag = ParamTags; using T = typename ParamTag::base_type; - ArgInfo<ParamTags> &arg_info = std::get<I>(args_info); + [[maybe_unused]] ArgInfo<ParamTags> &arg_info = std::get<I>(args_info); if constexpr (ParamTag::category == MFParamCategory::SingleInput) { if (arg_info.mode == ArgMode::Single) { /* The single value has been filled into a buffer already reused for every chunk. */ @@ -284,7 +284,7 @@ void execute_materialized(TypeSequence<ParamTags...> /* param_tags */, [&] { using ParamTag = ParamTags; using T = typename ParamTag::base_type; - ArgInfo<ParamTags> &arg_info = std::get<I>(args_info); + [[maybe_unused]] ArgInfo<ParamTags> &arg_info = std::get<I>(args_info); if constexpr (ParamTag::category == MFParamCategory::SingleInput) { if (arg_info.mode == ArgMode::Materialized) { T *in_chunk = std::get<I>(buffers_owner).ptr(); @@ -300,7 +300,7 @@ void execute_materialized(TypeSequence<ParamTags...> /* param_tags */, [&] { using ParamTag = ParamTags; using T = typename ParamTag::base_type; - ArgInfo<ParamTags> &arg_info = std::get<I>(args_info); + [[maybe_unused]] ArgInfo<ParamTags> &arg_info = std::get<I>(args_info); if constexpr (ParamTag::category == MFParamCategory::SingleInput) { if (arg_info.mode == ArgMode::Single) { MutableSpan<T> in_chunk = std::get<I>(buffers); |