[Mlir-commits] [mlir] [MLIR] Fix mismatched format specifier warning (PR #180792)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Feb 10 10:03:07 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 3998 tests passed
* 201 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>tools/mlir/test/CAPI/CMakeFiles/mlir-capi-rewrite-test.dir/rewrite.c.o</summary>

```
FAILED: tools/mlir/test/CAPI/CMakeFiles/mlir-capi-rewrite-test.dir/rewrite.c.o
sccache /opt/llvm/bin/clang -DLLVM_BUILD_STATIC -DMLIR_INCLUDE_TESTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/CAPI -I/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/CAPI -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -fPIC -fno-semantic-interposition -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=implicit-function-declaration -Wundef -Werror=mismatched-tags -O3 -DNDEBUG -UNDEBUG -MD -MT tools/mlir/test/CAPI/CMakeFiles/mlir-capi-rewrite-test.dir/rewrite.c.o -MF tools/mlir/test/CAPI/CMakeFiles/mlir-capi-rewrite-test.dir/rewrite.c.o.d -o tools/mlir/test/CAPI/CMakeFiles/mlir-capi-rewrite-test.dir/rewrite.c.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/CAPI/rewrite.c
/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/CAPI/rewrite.c:558:11: error: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Werror,-Wformat]
557 |   fprintf(stderr, "MaxIterations: %lld\n",
|                                   ~~~~
|                                   %ld
558 |           mlirGreedyRewriteDriverConfigGetMaxIterations(config));
|           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/CAPI/rewrite.c:561:11: error: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Werror,-Wformat]
560 |   fprintf(stderr, "MaxNumRewrites: %lld\n",
|                                    ~~~~
|                                    %ld
561 |           mlirGreedyRewriteDriverConfigGetMaxNumRewrites(config));
|           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/180792


More information about the Mlir-commits mailing list