Skip to content

Commit d79c284

Browse files
[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]
1 parent a79404e commit d79c284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPFlushConstruct &x) {
17441744
void OmpStructureChecker::Leave(const parser::OpenMPFlushConstruct &x) {
17451745
auto &flushList{std::get<std::optional<parser::OmpArgumentList>>(x.v.t)};
17461746

1747-
auto isVariableListItemOrCommonBlock{[this](const Symbol &sym) {
1747+
auto isVariableListItemOrCommonBlock{[](const Symbol &sym) {
17481748
return IsVariableListItem(sym) ||
17491749
sym.detailsIf<semantics::CommonBlockDetails>();
17501750
}};

0 commit comments

Comments
 (0)