Cleanup: quiet dangling-reference warnings with GCC13

This commit is contained in:
2023-05-10 12:06:27 +10:00
parent bb51cdedb7
commit 46479f41e1

View File

@@ -125,7 +125,8 @@ class ParamsBuilder {
const int param_index = this->current_param_index();
const ParamType &param_type = signature_->params[param_index].type;
BLI_assert(param_type.category() == ParamCategory::SingleOutput);
const CPPType &type = param_type.data_type().single_type();
const DataType data_type = param_type.data_type();
const CPPType &type = data_type.single_type();
if (bool(signature_->params[param_index].flag & ParamFlag::SupportsUnusedOutput)) {
/* An empty span indicates that this is ignored. */