[Mlir-commits] [mlir] [mlir] Fix unused-variable warning w/o assertions. (PR #99489)

Johannes Reifferscheid llvmlistbot at llvm.org
Thu Jul 18 06:16:42 PDT 2024


https://github.com/jreiffers created https://github.com/llvm/llvm-project/pull/99489

None

>From c25124b95f05c2e92fd29775fc64bc31f2c676b9 Mon Sep 17 00:00:00 2001
From: Johannes Reifferscheid <jreiffers at google.com>
Date: Thu, 18 Jul 2024 15:15:37 +0200
Subject: [PATCH] [mlir] Fix unused-variable warning w/o assertions.

---
 mlir/test/CAPI/rewrite.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mlir/test/CAPI/rewrite.c b/mlir/test/CAPI/rewrite.c
index a8b593eabb781..b33d225767046 100644
--- a/mlir/test/CAPI/rewrite.c
+++ b/mlir/test/CAPI/rewrite.c
@@ -68,6 +68,8 @@ void testInsertionPoint(MlirContext ctx) {
   // Get insertion blocks
   MlirBlock block1 = mlirRewriterBaseGetBlock(rewriter);
   MlirBlock block2 = mlirRewriterBaseGetInsertionBlock(rewriter);
+  (void)block1;
+  (void)block2;
   assert(body.ptr == block1.ptr);
   assert(body.ptr == block2.ptr);
 



More information about the Mlir-commits mailing list