[llvm] [mlir] eliminating g++ warnings (PR #105520)

Frank Schlimbach via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 07:41:24 PDT 2024


================
@@ -1629,7 +1629,7 @@ verifyTrait(Operation *) {
 
 /// Given a set of traits, return the result of verifying the given operation.
 template <typename... Ts>
-LogicalResult verifyTraits(Operation *op) {
+LogicalResult verifyTraits([[maybe_unused]] Operation *op) {
----------------
fschlimb wrote:

Good catch. With disabled warning this is no longer needed. Pushed reverted version.

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


More information about the llvm-commits mailing list