[Mlir-commits] [mlir] [mlir] fix `-Wunused-but-set-parameter` (PR	#71099)
    Mehdi Amini 
    llvmlistbot at llvm.org
       
    Thu Nov  2 13:56:25 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:
Seems like working around some gcc bugs? I don't think we should do that.
https://github.com/llvm/llvm-project/pull/71099
    
    
More information about the Mlir-commits
mailing list