[Mlir-commits] [mlir] [mlir] fix `-Wunused-but-set-parameter` (PR #71099)
Mehdi Amini
llvmlistbot at llvm.org
Thu Nov 2 13:58:55 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) {
----------------
joker-eph wrote:
See https://github.com/llvm/llvm-project/pull/68667
And also: https://github.com/llvm/llvm-project/pull/68528 ; maybe the guard in CMake isn't wide enough.
https://github.com/llvm/llvm-project/pull/71099
More information about the Mlir-commits
mailing list