[Mlir-commits] [mlir] [mlir] fix `-Wunused-but-set-parameter` (PR #71099)

Maksim Levental llvmlistbot at llvm.org
Thu Nov 2 14:02:02 PDT 2023


================
@@ -405,7 +405,7 @@ struct CastInfo<To, From,
   /// returns the dynamic ID. This means that T::classof would end up comparing
   /// the static TypeID of the children to the static TypeID of its parent,
   /// making it impossible to downcast from the parent to the child.
-  static inline bool isPossible(mlir::Attribute ty) {
+  static inline bool isPossible([[maybe_unused]] mlir::Attribute ty) {
----------------
makslevental wrote:

Ah well that'll teach me to not search for issues/closed PRs before submitting a new one. In reality I just need to add the same CMake lines in my downstream builds (the place I was actually recently seeing the noise). Sorry!

https://github.com/llvm/llvm-project/pull/71099


More information about the Mlir-commits mailing list