[flang-commits] [flang] [flang] Use C-style casts to silence message (NFC) (PR #131796)
Kelvin Li via flang-commits
flang-commits at lists.llvm.org
Tue Mar 18 06:13:30 PDT 2025
https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/131796
None
>From 3f7b5f90bd7b597dd73a4ba56c557d3eca33647b Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Fri, 14 Mar 2025 16:18:34 -0400
Subject: [PATCH] [flang] Use C-style casts to silence message (NFC)
---
flang/lib/Lower/OpenMP/Clauses.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flang/lib/Lower/OpenMP/Clauses.cpp b/flang/lib/Lower/OpenMP/Clauses.cpp
index 86d78e0358677..f98cc0c83d179 100644
--- a/flang/lib/Lower/OpenMP/Clauses.cpp
+++ b/flang/lib/Lower/OpenMP/Clauses.cpp
@@ -164,8 +164,8 @@ std::optional<Object> getBaseObject(const Object &object,
// as the symbol in the input object,
// e.g. A(i) is represented as {Symbol(A), Designator(ArrayRef(A, i))}.
// Here we have the Symbol(A), which is what we started with.
+ (void)symRef;
assert(&**symRef == object.sym());
- [[maybe_unused]] auto *unused = symRef;
return std::nullopt;
}
} else {
More information about the flang-commits
mailing list