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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 18 06:21:00 PDT 2024


Author: Johannes Reifferscheid
Date: 2024-07-18T15:20:57+02:00
New Revision: 15495b8cd4051d05c1b88c919e7c509a8ea4056a

URL: https://github.com/llvm/llvm-project/commit/15495b8cd4051d05c1b88c919e7c509a8ea4056a
DIFF: https://github.com/llvm/llvm-project/commit/15495b8cd4051d05c1b88c919e7c509a8ea4056a.diff

LOG: [mlir] Fix unused-variable warning w/o assertions. (#99489)

Added: 
    

Modified: 
    mlir/test/CAPI/rewrite.c

Removed: 
    


################################################################################
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