Fixed unused-but-set-parameter in GCC

This commit is contained in:
Bartek Kryza
2024-06-10 21:35:43 +02:00
parent 7e29453cb4
commit 7d859db15a

View File

@@ -619,7 +619,6 @@ void template_builder<VisitorT>::build_from_template_declaration(
const clang::TemplateDecl &template_declaration,
common::optional_ref<common::model::element> templated_element)
{
LOG_DBG("Processing {} template parameters...",
common::get_qualified_name(template_declaration));
@@ -670,6 +669,9 @@ void template_builder<VisitorT>::build_from_template_declaration(
});
}
}
else {
(void)templated_element; // NOLINT
}
template_model.add_template(std::move(ct));
}