@@ -1593,7 +1593,8 @@ foldTrait(Operation *, ArrayRef<Attribute>, SmallVectorImpl<OpFoldResult> &) {
15931593// / Given a tuple type containing a set of traits, return the result of folding
15941594// / the given operation.
15951595template <typename ... Ts>
1596- static LogicalResult foldTraits (Operation *op, ArrayRef<Attribute> operands,
1596+ static LogicalResult foldTraits ([[maybe_unused]] Operation *op,
1597+ [[maybe_unused]] ArrayRef<Attribute> operands,
15971598 SmallVectorImpl<OpFoldResult> &results) {
15981599 return success ((succeeded (foldTrait<Ts>(op, operands, results)) || ...));
15991600}
@@ -1629,7 +1630,7 @@ verifyTrait(Operation *) {
16291630
16301631// / Given a set of traits, return the result of verifying the given operation.
16311632template <typename ... Ts>
1632- LogicalResult verifyTraits (Operation *op) {
1633+ LogicalResult verifyTraits ([[maybe_unused]] Operation *op) {
16331634 return success ((succeeded (verifyTrait<Ts>(op)) && ...));
16341635}
16351636
@@ -1649,7 +1650,7 @@ verifyRegionTrait(Operation *) {
16491650// / Given a set of traits, return the result of verifying the regions of the
16501651// / given operation.
16511652template <typename ... Ts>
1652- LogicalResult verifyRegionTraits (Operation *op) {
1653+ LogicalResult verifyRegionTraits ([[maybe_unused]] Operation *op) {
16531654 return success ((succeeded (verifyRegionTrait<Ts>(op)) && ...));
16541655}
16551656} // namespace op_definition_impl
0 commit comments