[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 10:09:47 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG79d9918df616: [flang] Fix build warning from newer compilers (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131506/new/

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.451193.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220809/5f7d6a91/attachment.bin>


More information about the flang-commits mailing list