[Mlir-commits] [mlir] [mlir][python] handle more undefined symbols not covered by nanobind (PR #153861)

Rolf Morel llvmlistbot at llvm.org
Fri Aug 15 14:25:22 PDT 2025


rolfmorel wrote:

Great! Just to check though: does this address the warnings that were being generated during recent builds, e.g.:
```
[1075/1118] Building CXX object tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlir.dso.dir/__/lib/Bindings/Python/IRCore.cpp.o
/data/nfs_home/rmorel/llvm-project.git/elementwise-maximumf/mlir/lib/Bindings/Python/IRCore.cpp:2813:11: warning: unused function '_Py_XNewRef' [-Wunused-function]
PyObject *_Py_XNewRef(PyObject *obj) {
          ^
/data/nfs_home/rmorel/llvm-project.git/elementwise-maximumf/mlir/lib/Bindings/Python/IRCore.cpp:2822:11: warning: unused function '_Py_NewRef' [-Wunused-function]
PyObject *_Py_NewRef(PyObject *obj) {
          ^
2 warnings generated.
```

I think those are probably related to the same PR (or follow-up fixes).

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


More information about the Mlir-commits mailing list