[Mlir-commits] [mlir] cb25e7c - [MLIR][Python] Pass -Wno-unused-template to nanobind build

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Sep 5 23:52:07 PDT 2026


Author: Aiden Grossman
Date: 2026-09-05T23:52:03-07:00
New Revision: cb25e7ca7cef9e84db077fe36f3d27b269394c65

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

LOG: [MLIR][Python] Pass -Wno-unused-template to nanobind build

As with a lot of other warnings, the nanobind build is also not clean
under -Wunused-template. This was enabled by default for clang 23
(although reverted for 23.1.1). Disable it in case it gets enabled again
and also in case anyone enables it manually.

Reviewers: joker-eph, makslevental, dcaballe

Pull Request: https://github.com/llvm/llvm-project/pull/221479

Added: 
    

Modified: 
    mlir/cmake/modules/AddMLIRPython.cmake

Removed: 
    


################################################################################
diff  --git a/mlir/cmake/modules/AddMLIRPython.cmake b/mlir/cmake/modules/AddMLIRPython.cmake
index 7d47fd0bca34f..1e483116569a0 100644
--- a/mlir/cmake/modules/AddMLIRPython.cmake
+++ b/mlir/cmake/modules/AddMLIRPython.cmake
@@ -385,6 +385,7 @@ function(build_nanobind_lib)
         -Wno-deprecated-literal-operator
         -Wno-nested-anon-types
         -Wno-unused-parameter
+	-Wno-unused-template
         -Wno-zero-length-array
         -Wno-missing-field-initializers
         ${eh_rtti_enable})
@@ -1055,6 +1056,7 @@ function(add_mlir_python_extension libname extname nb_library_target_name)
         -Wno-deprecated-literal-operator
         -Wno-nested-anon-types
         -Wno-unused-parameter
+	-Wno-unused-template
         -Wno-zero-length-array
         -Wno-missing-field-initializers)
   endif()


        


More information about the Mlir-commits mailing list