[flang-commits] [flang] [flang] Use C-style casts to silence message (NFC) (PR #131796)
via flang-commits
flang-commits at lists.llvm.org
Tue Mar 18 06:14:08 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
Author: Kelvin Li (kkwli)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/131796.diff
1 Files Affected:
- (modified) flang/lib/Lower/OpenMP/Clauses.cpp (+1-1)
``````````diff
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 {
``````````
</details>
https://github.com/llvm/llvm-project/pull/131796
More information about the flang-commits
mailing list