[flang-commits] [flang] 6c7c660 - [flang] Use C-style casts to silence message (NFC) (#131796)

via flang-commits flang-commits at lists.llvm.org
Tue Mar 18 10:02:21 PDT 2025


Author: Kelvin Li
Date: 2025-03-18T13:02:18-04:00
New Revision: 6c7c660afe0ccddcd1bac0c153280d105d04590f

URL: https://github.com/llvm/llvm-project/commit/6c7c660afe0ccddcd1bac0c153280d105d04590f
DIFF: https://github.com/llvm/llvm-project/commit/6c7c660afe0ccddcd1bac0c153280d105d04590f.diff

LOG: [flang] Use C-style casts to silence message (NFC) (#131796)

Added: 
    

Modified: 
    flang/lib/Lower/OpenMP/Clauses.cpp

Removed: 
    


################################################################################
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