From: Kazu Hirata Date: Wed, 17 May 2023 16:45:03 +0000 (-0700) Subject: [flang] Fix an unused variable warning X-Git-Tag: upstream/17.0.6~8116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae2389bed2015b7d5b42bee619351261779b62c6;p=platform%2Fupstream%2Fllvm.git [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] --- diff --git a/flang/lib/Semantics/runtime-type-info.cpp b/flang/lib/Semantics/runtime-type-info.cpp index 827bb8e..a6b8d64 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().specificProcs()) { if (const DeclTypeSpec *