[flang-commits] [flang] 44c6616 - [flang] Fix a warning
Kazu Hirata via flang-commits
flang-commits at lists.llvm.org
Thu Feb 27 14:48:19 PST 2025
Author: Kazu Hirata
Date: 2025-02-27T14:48:13-08:00
New Revision: 44c6616a4a9f5c8e8e68364609f018c62670d114
URL: https://github.com/llvm/llvm-project/commit/44c6616a4a9f5c8e8e68364609f018c62670d114
DIFF: https://github.com/llvm/llvm-project/commit/44c6616a4a9f5c8e8e68364609f018c62670d114.diff
LOG: [flang] Fix a warning
This patch fixes:
flang/lib/Semantics/check-declarations.cpp:2009:15: error: unused
variable 'kind' [-Werror,-Wunused-variable]
Added:
Modified:
flang/lib/Semantics/check-declarations.cpp
Removed:
################################################################################
diff --git a/flang/lib/Semantics/check-declarations.cpp b/flang/lib/Semantics/check-declarations.cpp
index 7732cbff4faef..914d891cd9aa9 100644
--- a/flang/lib/Semantics/check-declarations.cpp
+++ b/flang/lib/Semantics/check-declarations.cpp
@@ -2006,7 +2006,6 @@ void CheckHelper::CollectSpecifics(DistinguishabilityHelper &helper,
void CheckHelper::CheckSpecifics(
const Symbol &generic, const GenericDetails &details) {
- GenericKind kind{details.kind()};
DistinguishabilityHelper helper{context_};
CollectSpecifics(helper, generic, details);
helper.Check(generic.owner());
More information about the flang-commits
mailing list