diff --git a/mlir/include/mlir/Parser/Parser.h b/mlir/include/mlir/Parser/Parser.h --- a/mlir/include/mlir/Parser/Parser.h +++ b/mlir/include/mlir/Parser/Parser.h @@ -49,6 +49,7 @@ // If not, then build a new top-level op if a concrete operation type was // specified. if constexpr (std::is_same_v) { + (void)context; return emitError(sourceFileLoc) << "source must contain a single top-level operation, found: " << parsedBlock->getOperations().size(),