[Mlir-commits] [mlir] 5bfa16c - [mlir] Fix an unused variable warning

Kazu Hirata llvmlistbot at llvm.org
Tue Oct 31 15:58:32 PDT 2023


Author: Kazu Hirata
Date: 2023-10-31T15:58:26-07:00
New Revision: 5bfa16cbc688abae750a243da2d46bd89e0c3758

URL: https://github.com/llvm/llvm-project/commit/5bfa16cbc688abae750a243da2d46bd89e0c3758
DIFF: https://github.com/llvm/llvm-project/commit/5bfa16cbc688abae750a243da2d46bd89e0c3758.diff

LOG: [mlir] Fix an unused variable warning

This patch fixes:

  mlir/test/lib/IR/TestBytecodeRoundtrip.cpp:403:10: error: unused
  variable 'status' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    mlir/test/lib/IR/TestBytecodeRoundtrip.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/IR/TestBytecodeRoundtrip.cpp b/mlir/test/lib/IR/TestBytecodeRoundtrip.cpp
index beecc57d7cdd0d7..668701f1352e0a3 100644
--- a/mlir/test/lib/IR/TestBytecodeRoundtrip.cpp
+++ b/mlir/test/lib/IR/TestBytecodeRoundtrip.cpp
@@ -402,6 +402,7 @@ struct TestBytecodeRoundtripPass
     // Downgrade IR constructs before writing the IR to bytecode.
     auto status = downgradeToVersion(op, targetEmissionVersion);
     assert(succeeded(status) && "expected the downgrade to succeed");
+    (void)status;
 
     BytecodeWriterConfig writeConfig;
     writeConfig.setDialectVersion<test::TestDialect>(


        


More information about the Mlir-commits mailing list