[Mlir-commits] [mlir] 61fbcc4 - [MLIR] Fix -Wunused-but-set-variable
Aiden Grossman
llvmlistbot at llvm.org
Wed Mar 25 14:46:44 PDT 2026
Author: Aiden Grossman
Date: 2026-03-25T21:46:28Z
New Revision: 61fbcc474551764c2c02486b729349d280755a18
URL: https://github.com/llvm/llvm-project/commit/61fbcc474551764c2c02486b729349d280755a18
DIFF: https://github.com/llvm/llvm-project/commit/61fbcc474551764c2c02486b729349d280755a18.diff
LOG: [MLIR] Fix -Wunused-but-set-variable
Use a void cast given [[maybe_unused]] is a C23 extension and this is a
C file. The calls also have side effects so it does not make sense to
inline into the assertions.
Added:
Modified:
mlir/test/CAPI/smt.c
Removed:
################################################################################
diff --git a/mlir/test/CAPI/smt.c b/mlir/test/CAPI/smt.c
index a621147c91b61..e66802ca19d56 100644
--- a/mlir/test/CAPI/smt.c
+++ b/mlir/test/CAPI/smt.c
@@ -36,6 +36,7 @@ void testExportSMTLIB(MlirContext ctx) {
MlirLogicalResult result = mlirTranslateModuleToSMTLIB(
module, dumpCallback, NULL, false, false, true);
+ (void)result;
assert(mlirLogicalResultIsSuccess(result));
// CHECK: ; solver scope 0
More information about the Mlir-commits
mailing list