[flang-commits] [flang] ae2389b - [flang] Fix an unused variable warning
Kazu Hirata via flang-commits
flang-commits at lists.llvm.org
Wed May 17 09:45:13 PDT 2023
Author: Kazu Hirata
Date: 2023-05-17T09:45:03-07:00
New Revision: ae2389bed2015b7d5b42bee619351261779b62c6
URL: https://github.com/llvm/llvm-project/commit/ae2389bed2015b7d5b42bee619351261779b62c6
DIFF: https://github.com/llvm/llvm-project/commit/ae2389bed2015b7d5b42bee619351261779b62c6.diff
LOG: [flang] Fix an unused variable warning
This patch fixes:
flang/lib/Semantics/runtime-type-info.cpp:1275:12: error: unused
variable 'name' [-Werror,-Wunused-variable]
Added:
Modified:
flang/lib/Semantics/runtime-type-info.cpp
Removed:
################################################################################
diff --git a/flang/lib/Semantics/runtime-type-info.cpp b/flang/lib/Semantics/runtime-type-info.cpp
index 827bb8e9fbf7..a6b8d646e6ea 100644
--- a/flang/lib/Semantics/runtime-type-info.cpp
+++ b/flang/lib/Semantics/runtime-type-info.cpp
@@ -1272,7 +1272,6 @@ CollectNonTbpDefinedIoGenericInterfaces(
{common::DefinedIo::ReadFormatted, common::DefinedIo::ReadUnformatted,
common::DefinedIo::WriteFormatted,
common::DefinedIo::WriteUnformatted}) {
- auto name{GenericKind::AsFortran(which)};
if (const Symbol * generic{FindGenericDefinedIo(scope, which)}) {
for (auto specific : generic->get<GenericDetails>().specificProcs()) {
if (const DeclTypeSpec *
More information about the flang-commits
mailing list