[flang] Fix a warning
This patch fixes: flang/lib/Semantics/check-omp-structure.cpp:1747:41: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
This commit is contained in:
@@ -1744,7 +1744,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPFlushConstruct &x) {
|
||||
void OmpStructureChecker::Leave(const parser::OpenMPFlushConstruct &x) {
|
||||
auto &flushList{std::get<std::optional<parser::OmpArgumentList>>(x.v.t)};
|
||||
|
||||
auto isVariableListItemOrCommonBlock{[this](const Symbol &sym) {
|
||||
auto isVariableListItemOrCommonBlock{[](const Symbol &sym) {
|
||||
return IsVariableListItem(sym) ||
|
||||
sym.detailsIf<semantics::CommonBlockDetails>();
|
||||
}};
|
||||
|
||||
Reference in New Issue
Block a user