[flang-commits] [PATCH] D131506: [flang] Fix build warning from newer compilers
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Aug 9 09:23:34 PDT 2022
klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
Remove a lambda capture of "[this]" in two cases where it
is no longer required. Will be pushed without waiting for
review if CI is successful in order to resolve a sad build bot.
https://reviews.llvm.org/D131506
Files:
flang/runtime/io-stmt.cpp
Index: flang/runtime/io-stmt.cpp
===================================================================
--- flang/runtime/io-stmt.cpp
+++ flang/runtime/io-stmt.cpp
@@ -456,12 +456,11 @@
}
void IoStatementState::CompleteOperation() {
- common::visit([this](auto &x) { x.get().CompleteOperation(); }, u_);
+ common::visit([](auto &x) { x.get().CompleteOperation(); }, u_);
}
int IoStatementState::EndIoStatement() {
- return common::visit(
- [this](auto &x) { return x.get().EndIoStatement(); }, u_);
+ return common::visit([](auto &x) { return x.get().EndIoStatement(); }, u_);
}
ConnectionState &IoStatementState::GetConnectionState() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131506.451185.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220809/640ba4cc/attachment.bin>
More information about the flang-commits
mailing list